Premium support

Please log in to post in these forums. If you didn't create an account when you purchased, please contact us.

Free support

If you haven't purchased GP Premium, support for the free theme can be found on


Forum Replies Created

Viewing 15 posts - 1 through 15 (of 41 total)
  • Author
  • in reply to: Tracking Code on specific pages? #502251

    Thank you Leo.

    So, if I wanted to add a tracking code to pages 55, 56, 57 in the header, I add this code to the wp_head hook:

    <?php if ( is_page(55, 56, 57) ) : ?>
        <script>Tracking Script</script>
    <?php endif; ?>


    I’d have to check “Execute PHP”, would that mess up code that’s already in there but is no php?


    in reply to: No feature image uploaded #486262

    Tom, I’ve just learned that this plugin you’ve mentioned “quick featured images” offers a way to quickly change the images in the post-list view, WITHOUT changing the date.

    So awesome!

    Thanks again for the help!


    in reply to: No feature image uploaded #485118

    Thank you Tom, the feature I need (select 1st images as featured) is only available in the premium version.

    I’m going to go for manual, shouldn’t take more than an hour, and then it’s done.

    Do you know any way to update the featured image, WITHOUT changing the modified_time we set up here:

    in reply to: No feature image uploaded #485079

    Tom, I think I’m going to do it the old-fashioned way and go through every article and do it manually. It’s 200+ articles, so this can take a while…

    in reply to: No "Read More" buttons #483281

    Thank you Tom. That worked perfectly!

    in reply to: No feature image uploaded #480951

    And on posts after the 2nd half of Page 2 and onwards, it doesn’t work at all!

    That’s weird…

    in reply to: No feature image uploaded #480950

    Thanks Tom, I tried it and it works. Problem is, it doesn’t take the FIRST image and turns it into “feature” but another, which makes it look weird sometimes.

    Any quick fix to the code to change this?

    add_filter('get_post_metadata', function($value, $object_id, $meta_key, $single) {
    	if ($meta_key !== '_thumbnail_id' || $value) {
    		return $value;
    	preg_match('~<img[^>]+wp-image-(\\d+)~', get_post_field('post_content', $object_id), $matches);
    	if ($matches) {
    		return $matches[1];
    	return $value;
    }, 10, 4);

    Thanks again!

    in reply to: No "Read More" buttons #480949

    I’ve added the code again to the live site and it worked.

    But it added a “Read More” text link right at the end of the excerpt, not the button?

    It’s not a big deal, though…

    Awesome Tom! That worked as well.

    I want to thank you for all your help so far. The support and willingness to help out is really amazing, on top of that great product that you offer.

    Thanks again!

    Thank you so much Tom, that worked beautifully!

    I’ve also tried to add the “update time”, can you please tell if this is correct?

    <span class="date updated published"><time datetime="<?php the_modified_time('Y-m-d'); ?>"><?php the_modified_time('F jS, Y'); ?></time></span>

    Thanks again,

    Okay, I think I found a fix. According to Yoast, I should change:

    <span class="author_name"><?php the_author(); ?></span>


    <span class="vcard author author_name"><span class="fn"><?php the_author(); ?></span></span>

    Problem is, I have this in “After Entry Title”:

    <a class="author-name" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"><?php the_author(); ?></a>

    What would be the corresponding change here?

    Thank you so much for your help so far!

    When you look at the pages you see that the author is displayed right below the post title… that’s weird.

    I haven’t removed them consciously… where should they be, and how do I add them back in?

    Hi Tom,

    The Google Search Console says that the error is on every page of the site (I’ve entered the URL when starting this topic).


    in reply to: No feature image uploaded #478568

    Okay, then I believe that I’ve found a solution, I just don’t know how to apply it.

    Can you please give me a tip and tell me if this is a valid method?

    I’m supposed to put this into my functions.php

    //function to call first uploaded image in functions file
    function main_image() {
    $files = get_children('post_parent='.get_the_ID().'&post_type=attachment
      if($files) :
        $keys = array_reverse(array_keys($files));
        $num = $keys[$j];
        $image=wp_get_attachment_image($num, 'large', true);
        $imagepieces = explode('"', $image);
        $imagepath = $imagepieces[1];
        print "<img src='$main' alt='$the_title' class='frame' />";

    And here’s what I don’t know HOW to do:

    The code above simply outputs the first image added to an article. Now we need to display this output in your theme. To do that, you will need to edit the theme files where post_thumbnail(); function is used. Replace it with the following code.

    <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) {
      echo get_the_post_thumbnail($post->ID);
    } else {
       echo main_image();
    } ?>

    Where do I put this code? And would you say that this works? (Don’t want to break anything, or slow the site down…)

    Thank you!

Viewing 15 posts - 1 through 15 (of 41 total)