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


  #1  
Old Jul 7, 2011, 12:21 PM
ortixia
 
48 posts · Nov 2009
Salt Spring Island, BC, Canada
[SOLVED] author bio and name in one cat only... now with no php in theme options

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, 12:58 PM
juggledad's Avatar
juggledad
 
23,765 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, 02: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 02:29 PM. Reason: found solution for one part, and removed the text...
  #4  
Old Jul 7, 2011, 02: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, 03:05 PM
juggledad's Avatar
juggledad
 
23,765 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, 03: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 03:14 PM. Reason: text edit

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 12:06 AM
[SOLVED] Author name and bio in only one parent category. ortixia Post-Kicker, -Byline & -Footer 4 Mar 8, 2010 02:00 PM
[SOLVED] Author bio &amp; photo in sidebar valis Sidebars & Widgets 7 Oct 16, 2009 05:06 AM
Center headertitle in Willy The Cat theme Sjonnie Other BFA WordPress Themes 0 Jul 21, 2009 01:20 PM
Author Pages (again) - display bio, links, etc? theangryblackwoman Atahualpa 3 Wordpress theme 1 Jun 10, 2009 08:37 AM


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


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