WordPress.org

Forums

Query posts by category... and display posts on page in grid layout without coding - Content Views
[resolved] [closed] Gallery to top of posts main page (13 posts)

  1. nlrstudios
    Member
    Posted 1 year ago #

    Is there any way to have this gallery load at the tope of my main posts page? I would like to use it as a way to link to previous posts from the top of my homepage blog.nlrstudios.com while still allowing the user to scroll beneath it if no thumbnail was chosen and view all previous posts.

    More as a portfolio gallery since posts will be showcasing my photography.

    https://wordpress.org/plugins/content-views-query-and-display-post-page/

  2. PT Guy
    Member
    Plugin Author

    Posted 1 year ago #

    Do you mean in your home page, you want to show your latest posts in gallery layout?
    Yes, you can do it with grid layout (in 'Field display' section, only check "Show Title", "Show Thumbnail" checkbox)

  3. nlrstudios
    Member
    Posted 1 year ago #

    I mean I want the gallery in grid style to sit at the top of my blog (loop.php) so when you land on my blog page it will be at the top and directly below my posts will automatically load...does this make sense?

  4. PT Guy
    Member
    Plugin Author

    Posted 1 year ago #

    Do you mean a gallery which generated by WordPress shortcode [gallery ...] or it is a list of posts?

  5. nlrstudios
    Member
    Posted 1 year ago #

    A list of posts. So basically I want your gallery to link to posts below or in previous pages that my loop doesn't show, as a shortcut to the posts basically....

  6. nlrstudios
    Member
    Posted 1 year ago #

    oops, i finally found the Php code I was needing in your description.

    <?php echo do_shortcode('[pt_view id="UNIQUE_ID"]'); ?>

    Thanks!

  7. PT Guy
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, if you want to show in a file in WordPress theme, you must use
    echo do_shortcode..., which I mentioned in plugin description.

    Thanks

  8. bstdesigner
    Member
    Posted 1 year ago #

    If I open the editor under appearance, where exactly do I need to paste this: <?php echo do_shortcode('[pt_view id="UNIQUE_ID"]'); ?>
    Thanks

  9. PT Guy
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    It depends on where you want to display this View.
    If you want to display in your home page:
    if you are using a static page, you should paste [pt_view id="UNIQUE_ID"] to editor of that page. Otherwise, you should paste to front-page.php (if it exists), or index.php.

    If you want to display View in other page, go to its Edit page, then paste
    [pt_view id="UNIQUE_ID"] to editor.

    Hope this helps.

  10. bstdesigner
    Member
    Posted 1 year ago #

    Please where exactly among the code in the index.php should I place this: [pt_view id="UNIQUE_ID"]?

  11. PT Guy
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    If depends on your needs.

    In index.php file, it often has a Loop, which start with
    if ( have_posts() ) :

    You can put this line of code before the Loop:
    echo do_shortcode('[pt_view id="VIEW_ID"]');

  12. bstdesigner
    Member
    Posted 1 year ago #

    Why do we have all the widgets on the right side, i.e., one sided? Why can't we push some widgets on the left or center. Like in blogger, you have options to take it anywhere that pleases you and even see a specified divided column.
    Anyone who can help please?

  13. PT Guy
    Member
    Plugin Author

    Posted 12 months ago #

    Hi,
    These forums aim to help users to use Content Views plugin.
    Your questions are not related.

    By the way, here is some answer for you:
    - color of footer:
    The copyright text has current style: color: white;.
    You may find it in footer.php file.

    - Why can't we push some widgets on the left or center:
    WordPress is not blogger. It requires coding to solve your need.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic