Tagcloud for Portfolio Categories

Home Support Business Point Plus Tagcloud for Portfolio Categories

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10757
    Klaus Bernsau
    Participant

    I’m use Business Point Plus Version: 2.1.0 under WordPress 5.0.3 and your PT Theme Addon. I can generate and edit portfolio items. And they were shown on a portfolio page. But the tag cloud widget is not working. It shows the portfolio categories that exist. But when you click on a category for exemple “automobilvermietung” your were led to a page “rooturl”/ptta-portfolio-categories/automobilvermietung/ but the portfolio item is not show but a page with the message “Nothing Found It seems we can’t find what you’re looking for. Perhaps searching can help.” This ist not the regular 404-page ut a special one. Seem there is a mismatch between search and display or there is the view for portfolio-results missing.

    Who can help?

    #10936
    nirav
    Keymaster

    Hello Klaus,

    We apologize for not being able to respond earlier.

    Unfortunately, this is a bug of pt theme add-on plugin and we will be resolving it soon in our next update.
    We are sorry for the inconvenience you may be facing.

    In the meantime, if you need to implement this now, you can do this via adding a filter.

    Open your theme’s function file and past below code at end of the file.

    add_filter('pre_get_posts', 'custom_post_type_tags');
    if (!function_exists('custom_post_type_tags'))
    {
        function custom_post_type_tags($query) {
            if(is_tax('ptta-portfolio-categories')) {
                $post_type = 'ptta-portfolio';
                $query->set( 'post_type', array( 'post', $post_type ) );    
                return $query;
            }
            elseif(is_tax('ptta-testimonials-categories')) {
                $post_type = 'ptta-testimonials';
                $query->set( 'post_type', array( 'post', $post_type ) );    
                return $query;
            }
            elseif(is_tax('ptta-team-categories')) {
                $post_type = 'ptta-team';
                $query->set( 'post_type', array( 'post', $post_type ) );    
                return $query;
            }
        }
    }

    Thank you

    Regards,
    Team ProDesigns

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