Tagged: masonry
-
AuthorPosts
-
March 2, 2017 at 11:41 am #754294
We use a filter on the masonry to display specific post category, after upgrading to 4.0.2, the masonry that is set to display category called “WHATS NEW” is now showing category “CL+GC” instead. Any idea why (see private for access)
March 3, 2017 at 12:26 pm #754998see private
March 3, 2017 at 1:34 pm #755032Hey!
Can you please check the logins once again? I am trying to login however it redirects me to homepage without logging in
Best regards,
YigitMarch 3, 2017 at 1:36 pm #755034thats the other issue im trying to fix, see here https://kriesi.at/support/topic/some-page-not-showing-as-logged-in/#post-755029
if you click another page it will show you as logged in
March 3, 2017 at 1:45 pm #755038Hi,
I believe it is plugin related as well.
And as far as i know, you cannot de-activate all active plugins for testing purposes on your live site.
If that is the case, please refer to this post – http://kriesi.at/documentation/enfold/move-from-a-local-installation-to-a-live-server/ and create a testing installation and de-activate plugins there.Best regards,
YigitMarch 5, 2017 at 12:09 am #755746I’ve de activated every plugin on the live site but the masonry still displayed the wrong category, please advise
March 5, 2017 at 12:28 am #755753Hi,
Sorry, I can login, but for the page in question I get “Sorry, but you do not have permission to view this content.”Best regards,
MikeMarch 5, 2017 at 12:41 am #755755oups, fixed now try again
March 9, 2017 at 7:19 am #758178Hey!
I checked the “whats-new” page but I can’t find the masonry element. Did you remove it? What was the filter that you used to display the category?
Regards,
IsmaelMarch 9, 2017 at 8:05 am #758206it’s there, as stated above i made it only visible to mobile,
March 9, 2017 at 9:40 am #758262Hey!
I’m sorry I didn’t notice it. Is this the modification that you used?
Did you add any modification to that filter?
Cheers!
IsmaelMarch 13, 2017 at 6:03 pm #760152I’ve a similar problem. Masonry shows posts from wrong categories. If all categories are chosen and ‘display sort option’ is activated, it displays wrong posts and many posts are missing completely. Blog and magazine work correctly. The problem is only with masonry. All shown posts and subcategories in the link don’t belong to the chosen category.
Shall I open a new thread? This one looks abandoned.
- This reply was modified 7 years, 8 months ago by oberton.
March 13, 2017 at 6:06 pm #760155still having the same issue myself (ismael i do not use this modification you linked), Oberton try a new thread and link it here, we need their attention as this is a bug it seems
March 13, 2017 at 11:40 pm #760330Hi,
I’ve got the same problem on my website: the Masonry shows all articles of the website when the categories are empty… Can you fix it quickly please, it’s a real mess !
March 14, 2017 at 6:45 am #760456Hi!
@kilimats That category is not a default object in the masonry. It was added using a custom modification. We need to know what function or modification is responsible for it.// http://kriesi.at/themes/enfold/blog/masonry-blog/
@mcourbot: This is a different issue and I don’t see any masonry element in the link that you provided. Please create a new thread with the url to the site plus the login credentials.Cheers!
IsmaelMarch 14, 2017 at 1:42 pm #760709I found a conflict with the plugin User Access Manager. Their option “hide empty categories” causes the fault. If this option is switched off masonry runs as expected again.
March 15, 2017 at 6:40 am #761154you guys were right, looks like its related to the modification you guys gave me in order to show private post in the mansory, starting in the new version this doesnt work, can you advise how i should modify the code?
this thread shows the changes we’ve made to show private post in the masory https://kriesi.at/support/topic/show-private-post-on-mansory/
March 15, 2017 at 8:56 am #761220Hey!
Please post the login details and give us access to the FTP so that we can check the modification.
Best regards,
IsmaelMarch 15, 2017 at 9:03 am #761222The credential are listed on my first post in the private
see below too thanks
March 15, 2017 at 12:39 pm #761353Hi!
We need the FTP details in order to modify the “avf_masonry_loop_prepare_mod_cat” function.
Cheers!
IsmaelMarch 19, 2017 at 7:35 pm #763296Can you advise what the change looks like and where it should be done, i will be adding it manually as we can’t share our FTP details due to our business model which sells digital products
- This reply was modified 7 years, 8 months ago by yingyang.
March 20, 2017 at 6:57 am #763505Hi!
Alright. What is the slug of the “what’s new” category? Please try to replace the filter with the following.
add_filter( 'avf_masonry_loop_prepare', 'avf_masonry_loop_prepare_mod_cat', 10, 2 ); function avf_masonry_loop_prepare_mod_cat( $key, $entries ) { $categories = get_the_category($key['ID']); $separator = ' '; $output = '<div class="ww-masonry-cat">'; if ( ! empty( $categories ) ) { foreach( $categories as $category ) { if($category->slug == "whats-new" && is_page(13)) { $output .= '<span alt="' . esc_attr( sprintf( __( 'View all posts in %s', 'textdomain' ), $category->name ) ) . '">' . esc_html( $category->name ) . '</span>' . $separator; } else { $output .= '<span alt="' . esc_attr( sprintf( __( 'View all posts in %s', 'textdomain' ), $category->name ) ) . '">' . esc_html( $category->name ) . '</span>' . $separator; } } } $output .= '</div>'; $key['text_before'] .= trim( $output, $separator ); return $key; }
Look for this line:
if($category->slug == "whats-new" && is_page(13)) {
Replace the value of the is_page function and the slug value (whats-new).
Cheers!
IsmaelMarch 20, 2017 at 8:21 am #763520Beauty will test this out this week thanks !!
March 21, 2017 at 6:00 am #763983 -
AuthorPosts
- You must be logged in to reply to this topic.