-
AuthorPosts
-
November 11, 2016 at 2:51 pm #711158
Hi,
I often use the masonry gallery shortcode for small galleries when I create blogposts. These galleries are always displayed when I open the post itself. And when I’m on the first page for the blogposts, the masonry galleris are also shown. But if I switch to the second (and so on) blogpage, the masonry galleries from these older blogposts don’t display anymore. They only appear if I open the blogpost or if the blogpost still stands on the first blogpage (so it must be one out of the ten newest blogposts).
Is there any way to display the masonry galleries of the older blogposts?
Thanks for any help!
November 14, 2016 at 9:23 am #711827Hi Jens!
Thank you for using Enfold.
I went to page 4 of the blog post overview page and a few of the posts still display the gallery.
// https://www.kirche-mswest.de/aktuelle-beitraege-aus-der-pfarrei/page/4/
Cheers!
IsmaelNovember 14, 2016 at 11:44 am #711875Hi Ismael,
thank you for your reply!
The galleries that you’ve seen (on page 4) are made with the standard wordpress gallery tool. That’s the reason why they are displayed on each of the blog pages. Only the enfold masonry galleries, which I implemented by using shortcode in the blog posts are not displayed on the blogpages 2, 3 etc. These enfold masonry galleries are only displayed on the first blog page.
I’ve no idea how to fix that problem.Greetings,
JensNovember 16, 2016 at 3:32 am #712711Hi,
I see. Thanks for the clarification. Please post the login details here so that we can check the posts from page 2 or 3.
Best regards,
IsmaelNovember 16, 2016 at 8:47 am #712793Hi Ismael,
I’ve created a new admin-account for you. The details are in the private content area.
Thx, Jens
November 19, 2016 at 7:18 am #714279Hey!
Thank you for the info. I checked the posts and the settings but I’m not sure what’s causing the issue. Could you please provide the FTP details so that we can inspect it further?
Regards,
IsmaelNovember 19, 2016 at 8:39 pm #714369Hi Ismael,
here are the FTP-details … in the private content area.
Greetings, Jens
November 25, 2016 at 12:41 pm #716796Hey!
Sorry for the delayed response. I have checked this issue and can confirm that this is a bug. I have reported this to our devs, hopefully this will be fixed soon. Thanks for using Enfold :)
Regards,
NikkoNovember 25, 2016 at 1:08 pm #716805Hey Nikko!
Thank you for your help so far … hope a fix will come soon.
Regards,
JensNovember 25, 2016 at 1:15 pm #716807Hey!
Thanks for using Enfold also :) we will keep this thread open until this issue is resolved.
Regards,
NikkoDecember 12, 2016 at 6:04 pm #723266Hey Nikko,
am I right, that the bug wasn’t or shouldn’t be fixed with the latest enfold update (3.8.2)?
Regards, Jens
December 21, 2016 at 12:25 am #726842Hi,
As Nikko mentioned, we have already reported the issue to our devs. They are currently working on the major update and investigating bug reports. We will include the fix in upcoming updates :)
Let us know if you have any other questions or issues and enjoy your holidays!
Best regards,
YigitMarch 3, 2017 at 10:04 am #754933Hey!
Please add this filter in the functions.php file:
// masonry element query add_filter( 'avia_masonry_entries_query', 'avia_masonry_entries_query_mod', 10, 2); function avia_masonry_entries_query_mod( $query, $params ) { if(!is_page(13)) return; $query['paged'] = 1; return $query; }
Cheers!
IsmaelMarch 6, 2017 at 1:32 pm #756378Hi Ismael,
the filter works fine. Thanks for the support!
Regards, Jens
March 6, 2017 at 2:06 pm #756404Hi Ismael,
I have to correct myself: the filter doesn’t work as fine as I thought. The filter solves on the one hand the problem with the masonry galleries, which are inserted into blog-posts by shortcode and should be displayed even on further blog-pages.
But on the other hand the filter ‘kills’ all masonry galleries which are inserted into all the other regular sites, which were build with the avia-editor.
Without the filter everything works fine agin. Only the topic-problem still exists. Maybe an little adjustment solves this new problem easily. But I’m not able to do it by myself.Regards, Jens
March 13, 2017 at 5:41 am #759819Hi,
Please replace is_home with the is_page conditional function. Use the id of the blog page as its value.
Best regards,
IsmaelMarch 31, 2017 at 1:38 pm #769939Hi Ismael,
the problem is back. The code above with the is_page conditional function didn’t work fine. And with the is_home condition the inserted masonry galleries are displayed in the further blog pages. But with that conditional function all the other masonry galleries on the other sites are not displayed anymore.
And now, even if I delete the code completly, the text-inserted masonry galleries on the the further blog pages disappear. And some of the regular masonry galleries, integrated into sites, which were build with the avia-layout-builder, are not displayed. But on th eother hand some are displayed correctly at the same time.
Right now I don’t know what to do next, because the masonry galleries are not displayed correctly wether I use the code in the functions.php or not.
Maybe one of the last updates cause these new problems?!
Thanks for your help in advance!
Regards, Jens
April 5, 2017 at 4:04 am #772146Hi,
Did you change the blog page? I checked the functions.php file but I can’t find the filter. Please use this instead.
// masonry element query add_filter( 'avia_masonry_entries_query', 'avia_masonry_entries_query_mod', 10, 2); function avia_masonry_entries_query_mod( $query, $params ) {; if ( !is_front_page() && is_home() ) { $query['paged'] = 1; } return $query; }
Best regards,
IsmaelApril 5, 2017 at 8:03 am #772285Hi Ismael,
I didn’t change the blog page itself, but I changed the functions.php and deleted the initial filter. The filter with the is_page conditional function didn’t work at all, the first filter with the is_home conditional function worked for the further blog pages but it ‘killed’ all the other masonry galleries all over the whole site. So I decided to disable the filter for the moment.
The new filter you provided above also doesn’t work. All masonry galleries over the wohle site disappear and the problem with the masonry galleries in the further blog pages also isn’t solved. They do not appear, if i click through the blog pages. They only appear if I open the blog posts with masonry galleries itself.
For now I deleted the filter from the functions.php.
Any new ideas or maybe corrections if I’m wrong are welcome.Thanks and regards,
JensApril 9, 2017 at 8:33 am #774812Hey!
We modified the code in the functions.php file. Please check it again.
Cheers!
IsmaelApril 10, 2017 at 12:25 pm #775392Hi Ismael,
after a quick look over all the relevant pages, it seems to me that the problem is solved. Thanks a lot!
Best regards,
JensApril 11, 2017 at 3:25 am #775757 -
AuthorPosts
- You must be logged in to reply to this topic.