Title: Template code not displaying
Last modified: August 20, 2016

---

# Template code not displaying

 *  Resolved [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/)
 * Hello!
 * I am using the free wordpress theme Ships Ahoy, and parts of the code that are
   there, simply aren’t working. Display of the authors name, next and previous 
   post. They’re coded in, I’ve researched that far, but won’t display….
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * can anyone see why?
 * thanks!

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Thread Starter [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107668)
 * [http://pastebin.com/YWjvGycB](http://pastebin.com/YWjvGycB)
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107751)
 * can you paste the full code of the template?
 * and a link to your site?
 *  Thread Starter [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107756)
 * Here’s the pastebin code for the template =)
 * [http://pastebin.com/DiV0cjAv](http://pastebin.com/DiV0cjAv)
 * the site is currently under construction and can’t be seen without a username
   and password. but here’s the link to the template..
 * [http://wordpress.org/extend/themes/ships-ahoy](http://wordpress.org/extend/themes/ships-ahoy)
 * thanks!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107760)
 * > and parts of the code that are there, simply aren’t working. Display of the
   > authors name, next and previous post. They’re coded in, I’ve researched that
   > far, but won’t display….
 * i missed to ask where exactly you would expect to see these.
 * the front page, for instance, is displayed by home.php, which does not have ‘
   the_author()’
 * ps:
    if you delete or rename home.php, index.php would take over to show the 
   front page.
 * ref:
    [http://codex.wordpress.org/Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
 *  Thread Starter [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107783)
 * Ok…I renamed home.php…..and now author is on the front page. =) cool…
    i still
   don’t see the previous and next links… they’re listed on the index.php code above,
   and I believe should show below the post? It’s not on the main page (which has
   the code) or on the single post page..(which doesn’t)
 * here’s the single post page code
    [http://pastebin.com/m8mN2LJm](http://pastebin.com/m8mN2LJm)
 * thanks so much for your help so far!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107791)
 * without seeing the site, there is no way to help you checking these things.
 * single.php does not have any ‘prev/next’ code;
    you can add it yourself: [http://codex.wordpress.org/Function_Reference/next_post_link](http://codex.wordpress.org/Function_Reference/next_post_link)
   [http://codex.wordpress.org/Function_Reference/previous_post_link](http://codex.wordpress.org/Function_Reference/previous_post_link)
 * index.php does have code for ‘next/prev’ posts; this will usually only show if
   there are more posts in your site than set under ‘settings’ reading’.
 * if the links don’t show on the front page, have a look into the html code in 
   the browser, and see if the corresponding html code appears:
 *     ```
       <div class="navigation">
       				<div class="alignleft">
       ```
   
 *  Thread Starter [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107800)
 * The site has gone live this morning ….[http://www.romancewritersrevenge.com](http://www.romancewritersrevenge.com)
   
   if that helps…
 * =)
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107802)
 * > i still don’t see the previous and next links…
 * they are at the very bottom on the front page.
 * assuming the last issue is the ‘next/prev’ link in single posts, you could add
   some code like this in single.php, just before the ‘endwhile;’ of the loop:
 *     ```
       <div class="navigation">
       			<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
       			<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
       		</div>
       ```
   
 * please post, if there are other open questions.
 *  Thread Starter [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107806)
 * yes yes yes!! just one last thing and I’ll leave you in peace I promise! Is there
   a way to truncate the title size or just have it say next or previous? Currently
   it bumps it onto 2 lines….
 * thank you thank you!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107807)
 * change the code to:
 *     ```
       <div class="navigation">
       			<div class="alignleft"><?php previous_post_link('%link','&laquo; next') ?></div>
       			<div class="alignright"><?php next_post_link('%link', 'previous &raquo;') ?></div>
       		</div>
       ```
   
 * [http://codex.wordpress.org/Function_Reference/next_post_link](http://codex.wordpress.org/Function_Reference/next_post_link)
   
   [http://codex.wordpress.org/Function_Reference/previous_post_link](http://codex.wordpress.org/Function_Reference/previous_post_link)
 *  Thread Starter [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107810)
 * absolutely perfect. thank you thank you thank you!!!!!!!!!!!!!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Template code not displaying’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 2 participants
 * Last reply from: [intcon](https://wordpress.org/support/users/intcon/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/template-code-not-displaying/#post-2107810)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
