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] PostKicker or Byline only in some posts?


  #1  
Old Jun 3, 2011, 04:23 PM
sanguango
 
25 posts · May 2011
[SOLVED] PostKicker or Byline only in some posts?

Hello, I've been looking for an answer to my question in the forum but I couldn't find it. I was wondering whether it is possible to show the PostKicker or the Byline only in some posts.

Let's say I have two type of posts: "news" and "places to visit". I want the "news" to show only the date and I want the "places to visit" to show only the address (assume I enter the address as a custom value). Is there any way to do this?

Thank you again in advance!
  #2  
Old Jun 3, 2011, 07:29 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
yes, in 3.6.7 you can edit index.php and add a conditional php statement to test for the category you want and make the TRUE portion the code that displays the byline.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 3, 2011, 11:37 PM
sanguango
 
25 posts · May 2011
I have no idea how to do that. What should I exactly do? Is there any place where I could learn to do that? I apologize for so many questions, I'm new with this!
  #4  
Old Jun 4, 2011, 04:05 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
To learn the various wordpress conditional tags, you can go to http://codex.wordpress.org/Conditional_Tags
to learn php you can do a google search 'php tutorial'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jun 5, 2011, 03:43 PM
sanguango
 
25 posts · May 2011
Thanks, juggledad! I've been trying to use this code to exclude the date from category 3 but it didn't work:

Code:
<?php if (!in_category('3')) { ?> %date('d.m.y')% <?php }; ?>
I put the code in the loop. I also tried activating and deactivating the
Code:
%date('d.m.y')%
code in the kicker, but nothing changed. Does anyone know what am I doing wrong?

Thank you
  #6  
Old Jun 5, 2011, 04:02 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What version of Atahualpa and WP?
What is the url?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to put picture into Byline? AJHackett Post-Kicker, -Byline & -Footer 10 Mar 7, 2011 04:07 AM
byline mick s Post-Kicker, -Byline & -Footer 3 Feb 6, 2011 08:30 PM
3.4.9 bug, % in byline Wimbledon Post-Kicker, -Byline & -Footer 6 May 23, 2010 09:21 PM
Byline: Homepage cvan Post-Kicker, -Byline & -Footer 1 Sep 6, 2009 04:25 AM
BYLINE Customization Darren Sproat Post-Kicker, -Byline & -Footer 0 Mar 21, 2009 04:38 PM


All times are GMT -6. The time now is 06:38 AM.


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