WordPress.org

Ready to get started?Download WordPress

Forums

RPS Image Gallery
[resolved] Page gallery not showing more than 5 images (3 posts)

  1. Sarah_O
    Member
    Posted 1 year ago #

    I'm inserting a gallery into a page and only five images show up, despite selecting over ten images to be displayed. Galleries work properly with more than five images in a blog post, but not with a regular page.

    Page example (only five images shown): http://sarah.oros.org/wordpress1/magnifiedimaging/

    Blog post example (more than five images shown): http://sarah.oros.org/wordpress1/2013/03/01/magnified-imaging-7/

    http://wordpress.org/extend/plugins/rps-image-gallery/

  2. redpixelstudios
    Member
    Plugin Author

    Posted 1 year ago #

    Sarah,
    It seems that this behavior is related to the minimatica theme. There is a function named minimatica_paged_posts that modifies the posts_per_page value before the gallery is displayed. It targets posts and pages in its original form, though it appears that it should just target posts. The function can be easily modified directly in the theme's functions.php file or overridden through the use of a child theme.

    If you want to take the direct approach, you would edit line 137 of the functions.php file, in the minimatica theme directory, to insert a conditional statement to check whether a page was being viewed. You would change it from this:

    ) && ( ! is_single() )

    to this:

    ) && ( ! is_single() && ! is_page() )

    If you would prefer to use a child theme instead, we have set one up which includes this function override. You can download the child theme from our site if you are interested in using it. The nice thing about this approach is that you will not need to edit any files and your changes will remain in place even if you update the parent minimatica theme.

    We hope that this helps to address your question. Let us know if we can be of further assistance with RPS Image Gallery.

  3. Sarah_O
    Member
    Posted 1 year ago #

    Thank you for the quick response! Everything is working perfectly. Thank you so much!!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.