• Resolved CindyIndyBones

    (@cindyindybones)


    Hi everyone,
    Sorry if someone else already asked this before. I’m new to this and would appreciate your help!

    I’m using the Soliloquy theme and would love to have my posts as excerpts on my frontpage (row of 3 excerpts, 3 rows). I downloaded the plugin and created a view. When I click on “show preview” it shows 3 posts in one row. When I click on “save”, the changes are not shown on my homepage. The posts are still one after the other.

    Is there somewhere an easy step-by-step guide?

    My website is: http://www.cindy-tierfotografie.ch

    Thank you in advance!
    Cindy

    https://ww.wp.xz.cn/plugins/content-views-query-and-display-post-page/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hi CindyIndyBones,
    Did you paste View shortcode to content of your frontpage?
    If you are using a template file for frontpage, you have to paste
    <?php echo do_shortcode('[pt_view id="VIEW_ID"]'); ?> to relevant line in that file.

    Thread Starter CindyIndyBones

    (@cindyindybones)

    Hi PT Guy,
    Thank you for your message!
    My front-page.php file contains this:
    <?php
    get_header();
    get_template_part( ‘parts/loop’);
    get_footer();
    ?>

    Where would I have to paste it? I tried it but my front page just showed an empty page.

    Sorry, I’m really new to this 🙁

    Best,
    Cindy

    Plugin Author Content Views

    (@pt-guy)

    If you want to display posts by View instead of content by active theme,
    you can change front-page.php like this

    <?php
    get_header();
    //get_template_part( 'parts/loop');
    echo do_shortcode('[pt_view id="VIEW_ID"]');
    get_footer();
    ?>

    Please replace VIEW_ID with ID of View you want to use.
    Best regards,

    Thread Starter CindyIndyBones

    (@cindyindybones)

    I did as you told me and now I get the big blog posts plus the news grid blog posts… They are squeezed in between the oldest blog post and the footer.
    http://www.cindy-tierfotografie.ch

    Plugin Author Content Views

    (@pt-guy)

    Ok I see,
    please modify file front-page.php like this

    <?php
    get_header();
    //get_template_part( 'parts/loop');
    printf('<div class="container content post-1 post type-post status-publish format-standard hentry category-fotografie" style="padding-top: 15px;">%s</div>', do_shortcode('[pt_view id="VIEW_ID"]'));
    get_footer();
    ?>
    Thread Starter CindyIndyBones

    (@cindyindybones)

    Wow, that’s amazing!!! It works! 🙂
    Thank you so much for all of your help!
    I will donate a little something to your plugin (it will be through my husband Sebastian’s account).

    Best,
    Cindy

    Plugin Author Content Views

    (@pt-guy)

    Hi Cindy,
    Thank you so much,
    I’ve sent you an thank-you email.
    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Grid view is not working’ is closed to new replies.