Tag placement on post single page

Home Forums Techozoic Tag placement on post single page

This topic contains 9 replies, has 2 voices, and was last updated by  Jeremy Clark 6 years, 3 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
Author Posts
Author Posts
December 25, 2010 at 7:20 am #1353

BartC

So on v1.9.1 with Jeremy’s help I edited the single.php file to place the tags at the bottom of the page for the post single page. The file lived here:

/htdocs/main/wp-content/themes/techozoic-fluid

so now in v1.9.2 the single.php was replaced with the upgrade. I then went and did a re-edit based on instructions from the 1.9.1 post, and got a fatal error. I restored the orginal single.php for the moment, but would like to go back to having the tags at the bottom of the single post.

Here is what I did:
Jeremy Clark said:

To move the tags from the post header on single pages you’ll need to edit the single.php file and look for this code

<small><?php printf(__(‘By %s’,’techozoic’), get_the_author()); ?>. <?php printf(__(‘Filed in %s’,’techozoic’),get_the_category_list(‘, ‘)) ?>&nbsp; | &nbsp;<?php edit_post_link(__(‘Edit’,’techozoic’), ”, ”); ?>&nbsp;<br /><?php the_tags(); ?></small>

You’ll need to change it to this.

<small><?php printf(__(‘By %s’,’techozoic’), get_the_author()); ?>. <?php printf(__(‘Filed in %s’,’techozoic’),get_the_category_list(‘, ‘)) ?>&nbsp; | &nbsp;<?php edit_post_link(__(‘Edit’,’techozoic’), ”, ”); ?>&nbsp;<br /></small>

Then further down the page is a section like this.

<p class="postmetadata alt">

<?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s. You can follow any responses to this entry through the %4$s feed.','techozoic'), get_the_time('l, F jS, Y'), get_the_time(), get_the_category_list(', '), "<a>".__(‘RSS 2.0′,’techozoic’)."</a>"); ?>

Simply change it to this.

<p class="postmetadata alt">

<?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s. You can follow any responses to this entry through the %4$s feed.','techozoic'), get_the_time('l, F jS, Y'), get_the_time(), get_the_category_list(', '), "<a>".__(‘RSS 2.0′,’techozoic’)."</a>"); ?><br /> <?php the_tags(); ?>


December 26, 2010 at 3:33 pm #1354

Jeremy Clark

Really all that you need to worry about is this code.

<?php the_tags(); ?>

You just need to make sure that it is placed after a closing ?> bracket or before an opening <?php bracket.

January 19, 2011 at 5:32 pm #1355

BartC

OK, but… I need paint by numbers. Does it go in the same file, and any particular place. Is it a replace or an add?

Sorry for being so dumb about this.

bc

January 20, 2011 at 5:54 am #1356

Jeremy Clark

Ok on the single.php look for this code.

<small><?php printf(__(‘By %s’,’techozoic’), get_the_author()); ?>. <?php printf(__(‘Filed in %s’,’techozoic’),get_the_category_list(‘, ‘)) ?>&nbsp; | &nbsp;<?php edit_post_link(__(‘Edit’,’techozoic’), ”, ”); ?>&nbsp;<br /><?php the_tags(); ?></small>

Change to this.

<small><?php printf(__(‘By %s’,’techozoic’), get_the_author()); ?>. <?php printf(__(‘Filed in %s’,’techozoic’),get_the_category_list(‘, ‘)) ?>&nbsp; | &nbsp;<?php edit_post_link(__(‘Edit’,’techozoic’), ”, ”); ?>&nbsp;<br /></small>

Then further down. Look for this.

<p class="postmetadata alt">
<small>
<?php printf(__(‘This entry was posted on %1$s at %2$s and is filed under %3$s. You can follow any responses to this entry through the %4$s feed.’,’techozoic’), get_the_time($date_format), get_the_time(), get_the_category_list(‘, ‘), "<a href="".get_post_comments_feed_link()."">".__(‘RSS 2.0′,’techozoic’)."</a>"); ?>
<?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Both Comments and Pings are open ?>
<?php printf(__(‘You can %1$s or %2$s from your own site.’,’techozoic’),'<a href="#respond">’. __(‘leave a response’,’techozoic’).'</a>’, ‘<a href="’. get_trackback_url() .’" rel="trackback">’. __(‘trackback’,’techozoic’).'</a>’)?>
<?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Only Pings are Open ?>
<?php printf(__(‘Responses are currently closed, but you can %s from your site.’,’techozoic’),'<a href="’. get_trackback_url().’" rel="trackback">’.__(‘trackback’,’techozoic’).'</a>’); ?>
<?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Comments are open, Pings are not ?>
<?php _e(‘You can skip to the end and leave a response. Pinging is currently not allowed.’,’techozoic’)?>
<?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
<?php _e(‘Both comments and pings are currently closed.’,’techozoic’)?>
<?php }
edit_post_link(‘&nbsp;’.__(‘ Edit this entry.’,’techozoic’),”,”);
?>
</small>

Change to this.

<p class="postmetadata alt">
<small>
<?php printf(__(‘This entry was posted on %1$s at %2$s and is filed under %3$s. You can follow any responses to this entry through the %4$s feed.’,’techozoic’), get_the_time($date_format), get_the_time(), get_the_category_list(‘, ‘), "<a href="".get_post_comments_feed_link()."">".__(‘RSS 2.0′,’techozoic’)."</a>"); ?>
<?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Both Comments and Pings are open ?>
<?php printf(__(‘You can %1$s or %2$s from your own site.’,’techozoic’),'<a href="#respond">’. __(‘leave a response’,’techozoic’).'</a>’, ‘<a href="’. get_trackback_url() .’" rel="trackback">’. __(‘trackback’,’techozoic’).'</a>’)?>
<br />
<?php the_tags(); ?>
<br />
<?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Only Pings are Open ?>
<?php printf(__(‘Responses are currently closed, but you can %s from your site.’,’techozoic’),'<a href="’. get_trackback_url().’" rel="trackback">’.__(‘trackback’,’techozoic’).'</a>’); ?>
<?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Comments are open, Pings are not ?>
<?php _e(‘You can skip to the end and leave a response. Pinging is currently not allowed.’,’techozoic’)?>
<?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
<?php _e(‘Both comments and pings are currently closed.’,’techozoic’)?>
<?php }
edit_post_link(‘&nbsp;’.__(‘ Edit this entry.’,’techozoic’),”,”);
?>
</small>
January 30, 2011 at 8:14 pm #1357

BartC

Perfect! thanks
bc

March 12, 2011 at 2:16 pm #1358

BartC

So when I did the upgrade to 1.9.3 the single.php file was replaced. I would like to return the tags to the bottom of the page on the single pages.

The single.php in 1.9.3 is different from the one in 1.9.2.

Can I use the same code replacement that you suggest above or not.

thanks

bc

March 18, 2011 at 1:26 am #1359

BartC

Hi Jeremy,

OK, so I forged ahead and subbed in the modified code from v1.9.2 and put it the single.php file for 1.9.3. It seems to work. But, I hope I have not broken something else that at the moment I don’t see.

Please let me know if this is an OK substitution.

bc
The Front Burner

March 22, 2011 at 5:55 am #1360

Jeremy Clark

Yes if you only modified the the code blocks above then you shouldn’t have broken anything. I only made a couple of changes on the single.php and none of them were in those areas.

May 3, 2011 at 11:15 pm #1361

BartC

OK so for 1.9.4 I went ahead and modified the single.php file as if it was the 1.9.3 version. I simply replaced the blocks of code as you indicated for 1.9.3,,,,,,

It seems to work, but did I break anything else…????

bc

May 4, 2011 at 6:06 am #1362

Jeremy Clark

I didn’t modify the tag blocks in 1.9.4 so you should be safe.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.