Making categories appear at the bottom of posts, rather than the top

  • lakenjr

    #7882

    Some of my posts have a long list of categories; it is less distracting to show the list of categories after each post, rather than before.

    I did this using an action hook, with some PHP code inserted into Ultimate TinyMCE PHP Widget

    1. Hide post categories

    ( Graphene options > post display options > Tick Hide Post Categories )

    2. Set graphene_post_footer action hook

    ( Graphene options > advanced > Action hook widget areas > Tick graphene_post_footer )

    3. Widgets will show that Graphene Post Footer has been dynamically added

    Drag Ultimate TinyMCE PHP Widget into the above, and insert the relevant PHP code into the widget’s code box.[/*]

    I obtained the relevant PHP code by inspecting …/wp-content/themes/graphene/loop.php and copying the lines shown below.

    NB Do not modify loop.php

    <?php /* Post meta */ ?>
    <div class="post-meta clearfix">

    <?php /* Post category, not shown if admin decides to hide it */ ?>
    <?php if ( ( $graphene_settings['hide_post_cat'] != true ) ) : ?>
    <span class="printonly"><?php _e( 'Categories:', 'graphene' ); ?> </span>
    <p class="meta_categories"><?php the_category( ", " ); ?></p>
    <?php endif; ?>
    </div>

    My website is http://www.papamayhem.com

    Prasanna SP

    #39703

    <?php if ( ( $graphene_settings.. .. is not needed.

    <div class="post-meta clearfix">
    <span class="printonly"><?php _e( 'Categories:', 'graphene' ); ?> </span>
    <p class="meta_categories"><?php the_category( ", " ); ?></p>
    </div>
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.