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

How do I get the byline to display?


  #1  
Old Mar 12, 2013, 01:13 PM
karixa
 
6 posts · Mar 2013
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, 01:28 PM
juggledad's Avatar
juggledad
 
23,597 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, 10: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 13, 2013, 12:21 AM
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 05:13 AM.
  #5  
Old Mar 13, 2013, 07:00 AM
juggledad's Avatar
juggledad
 
23,597 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, 10: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>
  #7  
Old Mar 13, 2013, 04:10 PM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I'm working on a patch
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Mar 13, 2013, 04:51 PM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
see PATCH 113-06: the_author and other 'Limited PHP code' don't all work
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Mar 13, 2013, 06:40 PM
karixa
 
6 posts · Mar 2013
That patch rocks - thank you so much!

I've really just started digging into this theme a bit - i have to say it's organized much better than any other WP theme I have dabbled with.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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


All times are GMT -6. The time now is 04:51 PM.


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