ChainKiller

Member

Forum Replies Created

  • If you want the same result for all of your categories creating a loop-category.php file with the above code will apply the change to all categories, else you have to create a new file for all categories you want to change.

    In reply to: Featured image is not used as header when using Photon

    #36225
    Quote:
    Photon is an image acceleration and editing service for sites hosted on WordPress.com or on Jetpack-connected WordPress sites. Simply click the “Activate” button for Photon on the Jetpack page in your blog dashboard, and your images will be served dynamically from the global WordPress.com cloud. That means less load on your host and faster images for your readers.

    More here: http://jetpack.me/support/photon/

    If your category is 2013 create a file named category-2013.php in your theme folder and add the following:

    <div id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix post' ); ?>><div class="entry clearfix">

    <?php /* Post title */ ?>
    <h2 class="post-title entry-title">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'graphene' ), the_title_attribute( 'echo=0' ) ); ?>"><?php if ( get_the_title() == '' ) { _e( '(No title)', 'graphene' ); } else { the_title(); } ?></a>
    <?php do_action( 'graphene_post_title' ); ?></h2>

    <?php /* Post meta */ ?>
    <?php if ( $post_type->name != 'page' || is_user_logged_in() ) : ?>
    <div class="post-meta clearfix">

    <?php /* Edit post link, if user is logged in */ ?>
    <?php if ( is_user_logged_in() ) : ?>
    <p class="edit-post">
    <?php edit_post_link( sprintf( __( 'Edit %s', 'graphene' ), $post_type->labels->singular_name ), ' (', ')' ); ?></p>
    <?php endif; ?>
    <?php do_action( 'graphene_post_meta' ); ?></div>
    <?php endif; ?></div></div>

    In reply to: Order posts by name

    #35561

    If i use the code in the loop i get 2 unique posts with the second post being repeated several times

    5QRbccC.jpg

    In reply to: Order posts by name

    #35559

    Thanks for your reply.

    Still your code is missing something: ‘&orderby=title

    global $query_string;
    query_posts( $query_string . '&orderby=title&order=ASC' );

    How can i do the same for loop.php?

    I tried adding the code but it’s not working.

    In reply to: Order posts by name

    #35557

    I need an answer.

    Is it possible to order the posts by their title?

    If yes, how?

    In reply to: Display categories in hierarchical order on posts

    #35526

    You can achieve that by editing the loop.php and loop-single.php files ( you can do it under WordPress dashboard appearance > editor or from cPanel)

    Search for

    <?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; ?>

    there replace `

    <?php the_category( “, ” ); ?> with

    <?php the_category( ” > “,”multiple” ); ?>` and when you add the category you choose only the last child category in your case only Lifeboat

    and you will get Movies > hitchcock > Lifeboat

    Check my site to see how it looks anime13.tk

    <?php the_category( " > ","multiple" ); ?>

    the > is the separator beetween the categories you can put any separator you want

    I recommend you to create a child theme and do the changes there.

Viewing 7 posts - 11 through 17 (of 17 total)

  • 1
  • 2