• i am just a beginner in word-press as well in PHP.I am trying to display author information along with his picture in the post and have successfully able to fetch all the data from gravatar.com and able to display it on the right hand side bar successfully.

    Currently this box is coming through out the website, but my requirement is that it should only be displayed when reader is on the post detail page. As per my little knowledge of word-press, i kw that each post will going to relate to some category. How can i able to show the author box to only post detail page and hide it from all other places.Any help in this regard will be much helpful

    Thanks in advance

Viewing 1 replies (of 1 total)
  • Thread Starter umesh.awasthi

    (@umeshawasthi)

    just to edit i have added following code

    <?php  $category_ids = remove_element(get_all_category_ids(),'274');
         if (in_category($category_ids)) { ?>

    this code is not working but if i pass a single category id to in_category() function like

    <?php
             if (in_category('8')) { ?>

    if block is working fine.i am clueless what is going wrong Thanks in advance

Viewing 1 replies (of 1 total)
  • The topic ‘Showing author box on post page’ is closed to new replies.