Jon Lynch

Member

Forum Replies Created

  • In reply to: Why is page link showing up on post?

    #16798

    To make the built in navigation functions stay in categories you need to add TRUE to the previous_post_link() and next_post_link() functions on lines 29 & 30 of loop.php

    I use:

    <p id="previous"><?php previous_post_link('« %link', '%title', TRUE); ?></p>
    <p id="next-post"><?php next_post_link('%link »', '%title', TRUE); ?></p>

    If you are using a child theme copy loop.php to your child theme directory before making the changes, that way they will not be overwritten when Graphene is updated.

    More information is available in the codex at http://codex.wordpress.org/Function_Reference/next_post_link

    This method reduces the number of plugins required but would make all navigation on the site follow categories. It also gets confusing when posts are in more than one category.

    Cheers

    Jon

    In reply to: Why is page link showing up on post?

    #16790

    I’m not sure if you are aware but it is possible to force the navigation to stay in categories, so you only get the previous/next posts from the category(s) that the current post is in. These are sorted by post date.

    I use the ambrosite plugin when I want posts sorted by a custom field.

    Have a look at http://www.wmrt.org.uk/members/karen-greene/ that uses the ambrosite plugin to sort the team members by surname (a custom field) and only display members of the same type.

    If either of these solutions would solve your situation, I’d be happy to give more detailed instructions.

    Jon

    In reply to: Re: www.FreeTravelGenius.com

    #16302

    If you want your Addthis on one line, try this:

    .add-this-right {width: 70px;}

    Otherwise looks good.

    Jon

    In reply to: Showing Off Wasdale Mountain Rescue

    #16707

    Thank you Ken,

    For the header I hooked onto the graphene_feed_icon action hook and used numbers greater than 10 (the default) for the order. Since all three added bits are floated left I gave About Us 11, Contact Us 12, and the Rescue Counter 13. Then I cloned the CSS to match the nav menu.

    eg:

    <?php

    /* — Adds About us link to top bar — */

    add_action(‘graphene_feed_icon’,’wmrt_about_us’, 11);

    function wmrt_about_us() {

    echo ‘<div id=”wmrt_aboutus”><link a href=”‘ . get_site_url() . ‘/about-us/” title=”About Us”><span>About Us</span></link a></div>’;

    }

    ?>

    I added link to stop the forum software mangling it.

    Hope this makes sense, and thanks for the feedback.

    Jon

    In reply to: New div above content main w/o affecting core?

    #16023

    Hi,

    Thank you for an excellent theme.

    I have been working with an increasingly growing child theme for Graphene at wmrt.jonlynch.co.uk . I regularly use the Action Hook list available here. I am very pleased to find that there is a before_content_main hook, are there any other hooks available that are not documented?

    Jon

Viewing 5 posts - 41 through 45 (of 45 total)