Closed. This question needs to be more focused. It is not currently accepting answers.admin管理员组文章数量:1130349
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 questionWordpress 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 questionWordpress 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
1 Answer
Reset to default 0The content of the post is called by <?php the_content; ?>
https://codex.wordpress/The_Loop_in_Action
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 questionWordpress 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 questionWordpress 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
1 Answer
Reset to default 0The content of the post is called by <?php the_content; ?>
https://codex.wordpress/The_Loop_in_Action
本文标签: theme developmentCatagories to the list of the titles in that catagory to the content of the post
版权声明:本文标题:theme development - Catagories to the list of the titles in that catagory to the content of the post 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749209984a2333199.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论