Integrate Template Tags into Arras Theme
-
I already tried the Arras theme forums, but nobody’s responded in a week. I’m having trouble figuring out WHERE to put the new template tag statements because Arras uses “filters.php” to display headers, bylines, etc. I know the snippet (as in, generally) where the coauthor tags need to go but I don’t know how to write PHP conditionals/if statements appropriately…within other if statements.
How should I modify this PHP?
if ( !is_page() ) { $postheader .= '<div class="entry-info">'; if ( arras_get_option('post_author') ) { $postheader .= sprintf( __('<div class="entry-author">By %s</div>', 'arras'), '<address class="author vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta('ID') ) . '" title="' . esc_attr(get_the_author()) . '">' . get_the_author() . '</a></address>' ); }
The entirety of filters.php is here: https://code.google.com/p/arras-theme/source/browse/theme/trunk/library/filters.php?r=454 (lines 34-39)
Thanks!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Integrate Template Tags into Arras Theme’ is closed to new replies.