On_The_Spot

Member

Forum Replies Created

  • In reply to: rel=author markup

    #28217

    I just looked at my Beta site running Graphene 1.7 with WordPress 3.3.2, and the rel=”author” is in the links. My production site is still running an older, different theme (based off of Twenty Ten), and the tag is not there even though it is also on WordPress 3.3.2.

    Based on that, the function you refer to is not called in building of that link. I looked at Graphene’s loop.php and found where it builds the HTML for the link, and the rel=”author” string is in there.

    In reply to: How To Insert an Ad after first post

    #26856

    I ran into the same problem as I’m redesigning my site (I wanted a sticky article below the lead article), and here’s the solution I came up with:

    Make a copy of loop.php to your child theme.

    Edit loop.php, modify the last line to read:

    <?php do_action( 'graphene_loop_footer', $wp_query->current_post); ?>

    Then, in your child theme’s functions.php, add a function:

    function show_interstitials($post_on_page) {

    if (is_home() & !is_paged() & ($post_on_page < 1)) {

    Rest of your php code for the ad/insert goes here

    };
    };

    add_action('graphene_loop_footer', 'show_interstitials', 10, 1);

    This currently only allows a post on the home page, and not on search or other pages. Modify the if statement above to remove is_home and is_paged references if you wish to enable it.

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