[SOLVED] Remove Byline in an individual post
Hi,
I need to remove (not show) the byline in just one post, all other posts shall show it. Are there any solution for that? |
find the id of the post then edit the loop (Style & edit CENTER COLUMN) and put a IF !is_post(...) around the byline code
|
I am not into php, can you take this step by step, course I don`t understand what I shall do with this code. The only thing I can see have to do with Byline in the loop is this:
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?> Shall I edit that code in any way? |
@juggledad: could it be the function has a different name?
When I try this, I get an error that is_post is a function that doesn't exist. |
Sorry, for a post it should be is_single
Quote:
Per, try this - substitute your post id for the 17 HTML Code:
<?php if ( !is_single('17') ) { bfa_post_byline('<div class="post-byline">','</div>');} ?> |
When I do this, all the content of the site disappears.
|
I used the code in the byline box instead and removed the content in the Byline, and thats good enough for me.
thanks |
I bad, I missed the closing ')' in the IF condition - post #5 is corrected
|
All times are GMT -6. The time now is 02:26 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.