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] author bio and name in one cat only... now with no php in theme options


  #1  
Old Jul 7, 2011, 01:21 PM
ortixia
 
48 posts · Nov 2009
Salt Spring Island, BC, Canada
see: http://forum.bytesforall.com/showthread.php?t=6153 for earlier troubleshooting on this issue...
however, now with new theme updates (3.6.7) I am unable to use php in theme options...
is there anything else I can do so that I can get author's name and bio to show in one category only?
  #2  
Old Jul 7, 2011, 01:58 PM
juggledad's Avatar
juggledad
 
23,576 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Due to the new requirements from WordPress.org, the code that would process the PHP had to be removed. so for now you could stay on 364 or you will have to edit the source code to accomplish this.

did you have anything else in the kicker beside the
HTML Code:
<?php if ( in_category(15)) { ?> %author-link% <?php }; ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 7, 2011, 03:18 PM
ortixia
 
48 posts · Nov 2009
Salt Spring Island, BC, Canada
I have php code in two places here:

Byline: single post pages:
PHP Code:
 <?php if ( in_category (array(15,30))) { ?> %author-posts-link% <?php }; ?>
and Footer single Post pages:
PHP Code:
<?php if ( in_category(15)) { ?> %author-description% <?php }; ?>

However, if i ammend the code in the theme source files, i need to do this every time there is an upgrade, so i try to keep this minimal.

Last edited by ortixia; Jul 7, 2011 at 03:29 PM. Reason: found solution for one part, and removed the text...
  #4  
Old Jul 7, 2011, 03:48 PM
ortixia
 
48 posts · Nov 2009
Salt Spring Island, BC, Canada
i believe I may be able to just get away without the footer/author description part by embedding the bios directly into the posts (copy-paste!) so now we are just down to the byline single posts...
  #5  
Old Jul 7, 2011, 04:05 PM
juggledad's Avatar
juggledad
 
23,576 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try this, edit index.php and change line 28 from
HTML Code:
		<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?>
to
HTML Code:
		<?php  if ( in_category (array(15,30))) {
			$bfa_ata['post_kicker_single'] .= ' %author-posts-link%'; bfa_post_kicker('<div class="post-kicker">','</div>'); } ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jul 7, 2011, 04:13 PM
ortixia
 
48 posts · Nov 2009
Salt Spring Island, BC, Canada
its actually a byline rather than kicker... so could I..substitute-->
PHP Code:
<?php  if ( in_category (array(15,30))) {
            
$bfa_ata['post_byline_single'] .= ' %author-posts-link%'bfa_post_byline('<div class="post-byline">','</div>'); } ?>
((by the way, thank you for helping!!! i love atahualpa, i am now running 5 sites on Atahualpa, including one multisite..))

Last edited by ortixia; Jul 7, 2011 at 04:14 PM. Reason: text edit
  #7  
Old Jul 7, 2011, 04:19 PM
juggledad's Avatar
juggledad
 
23,576 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Yes, but change line 30 instead
HTML Code:
		<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Jul 7, 2011, 04:25 PM
ortixia
 
48 posts · Nov 2009
Salt Spring Island, BC, Canada
yes! SOLVED! thank you!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Author Bio help lnsokol Atahualpa 3 Wordpress theme 13 Sep 17, 2010 01:06 AM
[SOLVED] Author name and bio in only one parent category. ortixia Post-Kicker, -Byline & -Footer 4 Mar 8, 2010 03:00 PM
[SOLVED] Author bio &amp; photo in sidebar valis Sidebars & Widgets 7 Oct 16, 2009 06:06 AM
Center headertitle in Willy The Cat theme Sjonnie Other BFA WordPress Themes 0 Jul 21, 2009 02:20 PM
Author Pages (again) - display bio, links, etc? theangryblackwoman Atahualpa 3 Wordpress theme 1 Jun 10, 2009 09:37 AM


All times are GMT -6. The time now is 09:42 AM.


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