Is there a way I can split up the post meta information so that the date and category is at the top and the comments are at the bottom?
Splitting up post meta information
(6 posts) (2 voices)-
Posted 1 year ago #
-
if you use <!--more--> tag in the post to add readmore, then you can enable the "Show Post a Comment Link (after read more)" theme setting, and a link to comment (and the amount of comments) will appear beside the readmore link. This is the the best way to do it, because you want the readers to go to the single post pages instead of reading the whole article on the frontpage. On the single page you can add related posts, most popular posts etc, and the comment form is at the bottom.
If you rather want to split up the meta information, you have to create another meta function (it can be found in theme-functions.php). Call it meta2 or something, and move the comments line from meta to the new function. Then call this function below the content in index.php.
Posted 1 year ago # -
What should the original met function be? I Can't even find it in theme-functions.php. UH OH.
Thanks for your help!
Posted 1 year ago # -
I tried this and I must have made the new meta function wrong cuz it gave me a page error 500.
Posted 1 year ago # -
function meta2() { echo '<div class="meta">'; comments_popup_link(__('No Comments', 'BigFeature'), __('1 Comment', 'BigFeature'), '% '.__('Comments','BigFeature')); echo '</div>'; }and call it like this (below the content in index.php):
<?php meta2(); ?>you can add a new css class and style it differently though...
Posted 1 year ago # -
Thank-you sooooo much! Life Saver!
Posted 1 year ago #
Reply
You must log in to post.