$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>theme development - Catagories to the list of the titles in that catagory to the content of the post|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

theme development - Catagories to the list of the titles in that catagory to the content of the post

matteradmin8PV0评论
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 6 years ago.

Improve this question

Wordpress homepage is shown. On the left sidebar catagories are shown. When the user clicks the category the post title related to that clicked category is populated on the middle part. Now when the user clicks the title in the second step, the content is shown in the third step. All the title of the post from that catogery should still be shown in the step 2.

What I have done so far?

I have done till 2 step. Now but when the title is clicked in the 2 step, the list of the post vanishes and only the title is shown.

<div  class="container-fluid">
  <div class="row">
    <div  class="col-3">
        <?php get_sidebar();?>
    </div>
    <div  class="col-3">
        <?php 
            if ( have_posts() ) {
                while ( have_posts() ) {
                    the_post(); ?>
                        <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                <?php } 
            } wp_reset_postdata();?>
    </div>
    <div  class="col-6">
       //No idea how to show the content
    </div>
  </div>
</div>
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 6 years ago.

Improve this question

Wordpress homepage is shown. On the left sidebar catagories are shown. When the user clicks the category the post title related to that clicked category is populated on the middle part. Now when the user clicks the title in the second step, the content is shown in the third step. All the title of the post from that catogery should still be shown in the step 2.

What I have done so far?

I have done till 2 step. Now but when the title is clicked in the 2 step, the list of the post vanishes and only the title is shown.

<div  class="container-fluid">
  <div class="row">
    <div  class="col-3">
        <?php get_sidebar();?>
    </div>
    <div  class="col-3">
        <?php 
            if ( have_posts() ) {
                while ( have_posts() ) {
                    the_post(); ?>
                        <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                <?php } 
            } wp_reset_postdata();?>
    </div>
    <div  class="col-6">
       //No idea how to show the content
    </div>
  </div>
</div>
Share Improve this question edited Nov 3, 2018 at 0:42 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Oct 29, 2018 at 21:45 LifestohackLifestohack 1112 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The content of the post is called by <?php the_content; ?> https://codex.wordpress/The_Loop_in_Action

Post a comment

comment list (0)

  1. No comments so far