Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] Remove Byline in an individual post


  #1  
Old Aug 25, 2009, 02:50 AM
Per Lund's Avatar
Per Lund
 
65 posts · Aug 2009
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?
  #2  
Old Aug 25, 2009, 05:43 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
find the id of the post then edit the loop (Style & edit CENTER COLUMN) and put a IF !is_post(...) around the byline code
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 25, 2009, 08:46 AM
Per Lund's Avatar
Per Lund
 
65 posts · Aug 2009
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?
  #4  
Old Aug 27, 2009, 06:40 AM
AnneTanne
 
40 posts · Jan 2009
Belgium
@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.
  #5  
Old Aug 27, 2009, 12:19 PM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Sorry, for a post it should be is_single
Quote:
is_single('17')
When Post 17 is being displayed as a single Post.
taken from http://codex.wordpress.org/Conditional_Tags

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>');} ?>
you can get the post id by editing the post, look at teh address and the number at the end is the post id
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Aug 31, 2009 at 05:21 AM.
  #6  
Old Aug 27, 2009, 11:21 PM
Per Lund's Avatar
Per Lund
 
65 posts · Aug 2009
When I do this, all the content of the site disappears.
  #7  
Old Aug 28, 2009, 12:42 AM
Per Lund's Avatar
Per Lund
 
65 posts · Aug 2009
I used the code in the byline box instead and removed the content in the Byline, and thats good enough for me.


thanks
  #8  
Old Aug 31, 2009, 05:22 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I bad, I missed the closing ')' in the IF condition - post #5 is corrected
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Sep 21, 2009 at 08:33 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Padding for individual post aliasfreq Atahualpa 3 Wordpress theme 11 Mar 29, 2012 04:46 AM
[SOLVED] Remove 'Comments are closed' from single post pages. Per Lund Post-Kicker, -Byline & -Footer 2 Aug 13, 2009 07:15 AM
css insert not showing individual posts bushtool New Versions, & Updating 9 Jul 15, 2009 06:54 PM
How can I remove all reference to RSS and Post and links in Header BFA_imager Forum How-To 2 Jul 10, 2009 08:09 PM
[SOLVED] How do I put the post title back in the individual posts back? Paleo Pat Atahualpa 3 Wordpress theme 7 Jul 9, 2009 03:05 PM


All times are GMT -6. The time now is 03:47 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.