Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 03: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, 06:43 AM
juggledad's Avatar
juggledad
 
23,765 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, 09: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, 07: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, 01:19 PM
juggledad's Avatar
juggledad
 
23,765 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 06:21 AM.
  #6  
Old Aug 28, 2009, 12:21 AM
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, 01: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, 06:22 AM
juggledad's Avatar
juggledad
 
23,765 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 09:33 AM.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Padding for individual post aliasfreq Atahualpa 3 Wordpress theme 11 Mar 29, 2012 05:46 AM
[SOLVED] Remove 'Comments are closed' from single post pages. Per Lund Post-Kicker, -Byline & -Footer 2 Aug 13, 2009 08:15 AM
css insert not showing individual posts bushtool New Versions, & Updating 9 Jul 15, 2009 07: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 09: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 04:05 PM


All times are GMT -6. The time now is 11:34 AM.


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