• Hey all

    I’m pretty new to wordpress and I’m using the Photostory template. I’d like to learn how to move tags, categories, author and all that junk from the top of my posts to the bottom. If anyone can walk me through I’d very much appreciate it. Explain it like you’re teaching a chimpanzee.

    Thanks

Viewing 1 replies (of 1 total)
  • Theme Author TT Themes

    (@tomastoman)

    Dear Incogniteaux,

    to move the post meta data, you will need to edit the “single.php” theme file. The best way how to do it is by creating a child theme, but you also can edit the code directly in the original theme in “Appearance > Editor” panel, where you will need to open the “Single Post (single.php)” template (choose it from the right side panel). The code for displaying the post meta is the following:

    <?php if ( $photostory_options_db['photostory_display_meta_post'] != 'Hide' ) { ?>
        <p class="post-meta">
          <span class="post-info-author"><?php _e( 'Author: ', 'photostory' ); ?><?php the_author_posts_link(); ?></span>
          <span class="post-info-date"><?php echo get_the_date(); ?></span>
    <?php if ( comments_open() ) : ?>
          <span class="post-info-comments"><a href="<?php comments_link(); ?>"><?php printf( _n( '1 Comment', '%1$s Comments', get_comments_number(), 'photostory' ), number_format_i18n( get_comments_number() ), get_the_title() ); ?></a></span>
    <?php endif; ?>
        </p>
        <div class="post-info">
          <p class="post-category"><span class="post-info-category"><?php the_category(', '); ?></span></p>
          <p class="post-tags"><?php the_tags( '<span class="post-info-tags">', ', ', '</span>' ); ?></p>
        </div>
    <?php } ?>

    You will need to move this code just above the <?php edit_post_link( __( 'Edit', 'photostory' ), '<p>', '</p>' ); ?> code. Here is how your single.php file should look after moving the code:

    <?php
    /**
     * The post template file.
     * @package PhotoStory
     * @since PhotoStory 1.0.0
    */
    get_header(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div id="content">
        <div class="content-headline">
          <h1 class="entry-headline"><?php the_title(); ?></h1>
    <?php photostory_get_breadcrumb(); ?>
        </div>
    <?php photostory_get_display_image_post(); ?>
        <div class="entry-content">
    <?php the_content(); ?>
    <?php wp_link_pages( array( 'before' => '<p class="page-link"><span>' . __( 'Pages:', 'photostory' ) . '</span>', 'after' => '</p>' ) ); ?>
    <?php if ( $photostory_options_db['photostory_display_meta_post'] != 'Hide' ) { ?>
        <p class="post-meta">
          <span class="post-info-author"><?php _e( 'Author: ', 'photostory' ); ?><?php the_author_posts_link(); ?></span>
          <span class="post-info-date"><?php echo get_the_date(); ?></span>
    <?php if ( comments_open() ) : ?>
          <span class="post-info-comments"><a href="<?php comments_link(); ?>"><?php printf( _n( '1 Comment', '%1$s Comments', get_comments_number(), 'photostory' ), number_format_i18n( get_comments_number() ), get_the_title() ); ?></a></span>
    <?php endif; ?>
        </p>
        <div class="post-info">
          <p class="post-category"><span class="post-info-category"><?php the_category(', '); ?></span></p>
          <p class="post-tags"><?php the_tags( '<span class="post-info-tags">', ', ', '</span>' ); ?></p>
        </div>
    <?php } ?>
    <?php edit_post_link( __( 'Edit', 'photostory' ), '<p>', '</p>' ); ?>
    <?php endwhile; endif; ?>
    <?php if ( $photostory_options_db['photostory_next_preview_post'] != 'Hide' ) { ?>
    <?php photostory_prev_next('photostory-post-nav'); ?>
    <?php } ?>
    <?php comments_template( '', true ); ?>
        </div>
      </div> <!-- end of content -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I hope that my guide will be helpful for you.

    Best regards
    Tomas Toman

Viewing 1 replies (of 1 total)
  • The topic ‘Tags to the bottom’ is closed to new replies.