Tagged: 

Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #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)

    https://i.imgur.com/ZkUz9sr.pnghttps://i.imgur.com/JVREkFQ.png

    #754998

    see private

    #755032

    Hey!

    Can you please check the logins once again? I am trying to login however it redirects me to homepage without logging in

    Best regards,
    Yigit

    #755034

    thats 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

    #755038

    Hi,

    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,
    Yigit

    #755746

    I’ve de activated every plugin on the live site but the masonry still displayed the wrong category, please advise

    #755753

    Hi,
    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,
    Mike

    #755755

    oups, fixed now try again

    #758178

    Hey!

    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,
    Ismael

    #758206

    it’s there, as stated above i made it only visible to mobile,

    #758262

    Hey!

    I’m sorry I didn’t notice it. Is this the modification that you used?

    // https://kriesi.at/support/topic/display-the-post-category-above-the-title-in-masonry-view/#post-660217

    Did you add any modification to that filter?

    Cheers!
    Ismael

    #760152

    I’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, 9 months ago by oberton.
    #760155

    still 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

    #760330

    Hi,

    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 !

    #760456

    Hi!


    @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!
    Ismael

    #760709

    I 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.

    #761154

    you 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/

    #761220

    Hey!

    Please post the login details and give us access to the FTP so that we can check the modification.

    Best regards,
    Ismael

    #761222

    The credential are listed on my first post in the private

    see below too thanks

    #761353

    Hi!

    We need the FTP details in order to modify the “avf_masonry_loop_prepare_mod_cat” function.

    Cheers!
    Ismael

    #763296

    Can 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, 9 months ago by yingyang.
    #763505

    Hi!

    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!
    Ismael

    #763520

    Beauty will test this out this week thanks !!

    #763983

    Hey!

    Alright. Don’t forget to change the slug and the value of the is_page function.

    Cheers!
    Ismael

Viewing 24 posts - 1 through 24 (of 24 total)
  • You must be logged in to reply to this topic.