Thread Starter
intcon
(@intcon)
can you paste the full code of the template?
and a link to your site?
Thread Starter
intcon
(@intcon)
Here’s the pastebin code for the template =)
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
thanks!
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
Thread Starter
intcon
(@intcon)
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
thanks so much for your help so far!
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/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
(@intcon)
The site has gone live this morning ….http://www.romancewritersrevenge.com
if that helps…
=)
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('« %link') ?></div>
<div class="alignright"><?php next_post_link('%link »') ?></div>
</div>
please post, if there are other open questions.
Thread Starter
intcon
(@intcon)
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!
change the code to:
<div class="navigation">
<div class="alignleft"><?php previous_post_link('%link','« next') ?></div>
<div class="alignright"><?php next_post_link('%link', 'previous »') ?></div>
</div>
http://codex.wordpress.org/Function_Reference/next_post_link
http://codex.wordpress.org/Function_Reference/previous_post_link
Thread Starter
intcon
(@intcon)
absolutely perfect. thank you thank you thank you!!!!!!!!!!!!!