• Resolved susanhsun

    (@susanhsun)


    Hey
    It seems Content Control works nicely for pages and posts. But it doen’t work for categories or posts with categories.
    How to enable certain user to access certain category and all the posts uner that category_

    Best regards,
    Susan

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter susanhsun

    (@susanhsun)

    Hey
    I just turned off all plugins, except Content Control. I still cannot strict posts of certain categories to only logged in users.
    If this is indeed the feature of Content Control, I’ll need to quickly switch plugins, as we have some categories for only logged in users.

    Best regards,
    Susan

    Thread Starter susanhsun

    (@susanhsun)

    Content Control works if I select ‘A Post’. It doesn’t work if I select ‘Categories: Selected’, or ‘A Post with Category’

    I am having the same the problem and need to know if this will work. Otherwise I will have to use another member plugin. Very disappointed if that is the case.

    For some reason it will not load the categories. It says that “The results could not be loaded”

    Any help is appreciated.

    Plugin Author Daniel Iser

    (@danieliser)

    @susanhsun – Just ran a quick test on a clean site, seems to work correctly for me for posts with category.

    Posts & their categories
    Posts & their categories
    Restriction setup
    Restriction setup 2
    Rules for Posts with Category
    Rules for Posts with Category
    Content being restricted in list
    Content being restricted in list
    Redirect to login and back if you attempt to view
    Redirect to login and back if you attempt to view.

    Not sure what you are dealing with, but if you only have our plugin active, my guess is you either have other restrictions applied that are conflicting, or possibly custom code interfering. Hard to say without more details.

    In general the code for these conditions is extremely reliable under normal WordPress conditions. They have been tested on nearly 1 million sites and never been found to have issues that were related to the code on our end. To be clear these same conditions are also used for targeting our Popup Maker popups and Ahoy messages (2 other plugins).

    So unless WordPress core changes how categories work, those should still do the job.

    Couple things that can interfere with this plugin specifically:
    – Caching plugins
    – Optimization plugins
    – Cloudflare page cache
    – Browser caching redirects (impossible to clear without full clear of history & temp files)

    But these are common issues with any site, not just ours, you might see them more pronounced with this plugin because you expect to see changes immediately and caching may not have cleared yet.

    @121website – That may indicate a PHP or JS error occurred during the loading of those categories. You can use this guide to check for a JS error, and the Query Monitor plugin to check for PHP errors during AJAX requests: https://docs.wppopupmaker.com/article/373-checking-javascript-errors

    Let us know.

    • This reply was modified 2 years, 11 months ago by Daniel Iser.

    The same problem does not work with categories.

    Thread Starter susanhsun

    (@susanhsun)

    This is what I found. It is not blocked by anything else, but by other rules I created earlier.
    I used ‘Custom Message’ for some rules. After combining and removing all rules with ‘Custom Message’, rule for Category works as expected.

    Plugin Author Daniel Iser

    (@danieliser)

    @susanhsun – Not sure if you noticed but you can drag & rearrange/reorder the restriction sets. This sets the priority for how they are processed and is helpful for when you have multiple potentially overlapping rules.

    Just to confirm though I just retested with the Category rule and it blocks those pages and redirects, but if you restrict content it doesn’t seem to do anything but if you really think about it, an archive page template doesn’t actually have any content, it has a loop of posts with content. Not sure how to best restrict that other than maybe just modifying the query so that no results are returned. It would really take a custom theme template to render customizable content there in its place.

    Hope that helps.

    I am having the same issue with the “Custom Message”. If I set it to Custom Message the post loads and you can see everything on the page. If I set it to Redirect, it redirects to the homepage as set.

    I am not sure why this has happened since I had been using the plugin for over a year without any issues. I was able to set the Content Control by Category and it would show the custom message. now it simply does not work.

    gillbau

    (@gillbau)

    Hi I have the same issue to restrict all posts in a category

    I cant specify the category

    gillbau

    (@gillbau)

    I add that I have a fresh install with no plugin except “content control” and the error message in the box when i want to choose a post in category is “The results could not be loaded”
    This error message appears in other type of content restriction like “post with tag” or “post with format”
    But there is no issue when choosing a content restriction with specifics ID

    I dont understand why nobody has the same issue, because I test with many fresh install as this new wordpress 5.7 and last content control plugin
    It is impossible to control acess with “post with a category”
    The error message when i try to choose a category is : the results could not be loaded

    one content control extension installed

    only one post in wp

    the results could not be loaded

    • This reply was modified 1 year, 11 months ago by gillbau.

    I found that on one of my 2 servers (from 2 différents providers) the plugin goes well except that I cant block a page which is on a specified category. (only block post on a category is allowed)
    For information this which goes wrong is at ovh.com and the one whoch goes well is at planethoster

    the 2 differents server are on php 7.4

    the phpinfo which is on the one which make the issue is here

    and the one which goes well is here

    I dont know if the issue can be elsewhere

    I finally found the issue at ovh provider
    This is when you activate the firewall in the php 7.4 config
    You have to desactivate and have a similar file “.ovhconfig” with : http.firewall=none`

    My .ovhconfig is now
    app.engine=phpcgi
    app.engine.version=7.4
    container.image=stable64
    environment=production
    http.firewall=none`

    And I dont have any more the error message “The results could not be loaded” and I can choose directory or tags

    I Hope this can be usefull for others

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Content control doesn’t work with Category’ is closed to new replies.