Popular Post View Widget Logic

This topic contains 7 replies, has 2 voices, and was last updated by  Alex Rollin 6 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #417936

    Gorj
    Full Member
    Post count: 6

    I set up about 10 Popular Post Vew Widget Logic using different post categories. For some reason the widget crashed and my site was shwoing a mess of code. I removed the problem widget but it didnt fix the issue. After removing the code the widget didnt work at all. Now I have it back up however the widget logic isnt working properly. Here is an example:

    in_category(‘new-practice’)||in_category(‘medical-consulting’)||is_page(‘practice-setup’)||is_page(‘video-q-and-a’)||is_page(‘practice-setup-channel’)||is_page(‘tax-consultants’)

    With this the Popular Post View Widget Logic should only show the specific widget on these pages or on pages/posts with those categories. This is how it worked initially. This is not working now. What should I do? See here: http://prntscr.com/ifp8mw

    #417942

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Is the widget still working? If not, please send us a link to a page where we can look at the issue, along with WP Admin credentials and we can take a look.

    As far as widget logic is concerned, that seems a relatively complex ‘logic’ but I can’t say what would make it ‘crash’, that depends on several factors and you could contact the author to ask more about it.

    #417990

    Gorj
    Full Member
    Post count: 6
    This reply has been marked as private.
    #417996

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    please include a URL where we can see the issue.

    #419352

    Gorj
    Full Member
    Post count: 6
    This reply has been marked as private.
    #419430

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    please send over a URL where the widgets in question ought to be shown within that sidebar.

    Of note it seems like widget logic wants the ‘name’ of the category, so, perhaps it should be “Accountants” instead of “accountants”.

    #419904

    Gorj
    Full Member
    Post count: 6
    This reply has been marked as private.
    #419972

    Alex Rollin
    Moderator
    Post count: 27815

    I think the categories you are using in the logic are place categories, but the page you linked is not a GD page, therefore the widget will not be able to filter by category, because the GD category in the logic is not applicable to that post.

    I recommend you use only is_page to filter, or use only the category of the post itself, as opposed to the GD categories.

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount