• Hello,

    I’m trying to understand how to best use the GeneratePress theme with respect to SEO.

    Many people suggest you should use Pages (as opposed to Posts) to create your top hierarchy page, esp. in the world of affiliation blogs.

    It seems like for Pages:

    1 – You cannot use Categories. True ?
    As such, Pages won’t display on your Category pages?
    What is best in terms of SEO? Pages or Posts that can be categorized?
    Please note that I use my Categories page for my top menu. Maybe I should not?

    2 – Also, I love the way the Feature image looks on Posts with GeneratePress.
    How can you get your Pages to look like this?
    Is there a way to define the Feature image to look like this for Pages? Like they do on Posts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @masterhealerwp,

    1. By default, you cant. But through a third party plugin or custom code, you can make it possible: https://www.wpbeginner.com/plugins/how-to-add-categories-and-tags-for-wordpress-pages. With regards to the best SEO practice, it would be best to ask an SEO expert as this is out of our expertise.
    2. Without custom code, you’ll need GP Premium to do as such.

    Hope this clarifies!

    Thread Starter masterhealerwp

    (@masterhealerwp)

    Hi

    Thank you.

    Would you be kind enough to provide the custom code please?
    I really think this option should be offered in the free version of the theme. Many free themes do offer to choose the way you display the feature image.

    Thanks again for your great work, theme and support.

    Here’s a code you can build of from:

    add_filter( 'the_content', 'insert_featured_image', 20 );
    function insert_featured_image( $content ) {
    	global $post;
        $feat_img = get_the_post_thumbnail($post->ID);
        if ( is_page() && ! is_admin() ) {
            return '<div class="featured-image">' . $feat_img . '</div>' . $content;
        }
        return $content;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page Vs Post?’ is closed to new replies.