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 » Montezuma Theme »

How do I get the byline to display?


  #1  
Old Mar 12, 2013, 12:13 PM
karixa
 
6 posts · Mar 2013
How do I get the byline to display?

Probably a silly question, but I don't see it - In the Montezuma theme, how do I get the writer's byline to display when they post a new article? (post)
  #2  
Old Mar 12, 2013, 12:28 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Look at the 'limited php code' in the virtual themes
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 12, 2013, 09:52 PM
karixa
 
6 posts · Mar 2013
That gets me in the right place, thanks!

Should this require a parameter? It doesn't seem to return any value.

<?php the_author(); ?>
  #4  
Old Mar 12, 2013, 11:21 PM
jerryc
 
367 posts · Oct 2012
Florida
I only use MZ for pages, not posts, but I remember seeing a lot of headlines about showing the author. Try searching (use advanced search) this forum with the term author, and I expect you'll find something.

Last edited by juggledad; Mar 13, 2013 at 04:13 AM.
  #5  
Old Mar 13, 2013, 06:00 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
That gets me in the right place, thanks!

Should this require a parameter? It doesn't seem to return any value.

<?php the_author(); ?>
where exactly are you placing it?

jerry: pages have authors too....
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Mar 13, 2013, 09:45 AM
karixa
 
6 posts · Mar 2013
I was placing it in the single.php in the block below the headline (title) and comment count. "By" shows up but the field is presumably null - no author name displays (and not obvious error in the display).



<div id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?>>

<h1>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
<?php bfa_comments_number(); ?>
</h1>
<p> By <?php the_author(); ?></p>
<div class="post-footer">
<?php the_time( 'j M Y' ); ?> &nbsp;&nbsp;| <?php the_category( ' &middot; ' ); ?>
<?php the_tags( __( '<p class="post-tags">Tags: ', 'montezuma' ), ' &middot; ', '</p>' ); ?>
</div>

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
byline mick s Post-Kicker, -Byline & -Footer 3 Feb 6, 2011 08:30 PM
How to set the date in the byline pollycle Post-Kicker, -Byline & -Footer 11 Jun 3, 2010 11:45 AM
3.4.9 bug, % in byline Wimbledon Post-Kicker, -Byline & -Footer 6 May 23, 2010 09:21 PM
[SOLVED] Display Field from wp_posts table in Byline joan Post-Kicker, -Byline & -Footer 1 Feb 6, 2010 02:17 AM
Byline: Homepage cvan Post-Kicker, -Byline & -Footer 1 Sep 6, 2009 04:25 AM


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


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