• Resolved majidmad

    (@majidmad)


    Hi,

    I read in one of support threads, developer mentioned the plugin works with pages and post.

    I have installed “Create And Assign Categories For Pages” plugin to assign category to pages which it did it perfectly.

    Now, I try to redirect to a random page among pages within that category with ID 248, but it didn’t work and redirects me to my home page.

    Here is the category url:
    https://rafiee.net/wp-admin/term.php?taxonomy=category&tag_ID=248&post_type=page&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dcategory%26post_type%3Dpage

    There are three pages inside this category. I tried to randomize by:
    https://rafiee.net/?redirect_to=random&cat=248
    but it keeps redirecting to homepage rather than to those pages inside the category.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Christoph

    (@camthor)

    A page is a different “post type”, so you need to specify it in the URL:

    https://rafiee.net/?redirect_to=random&cat=248&post_type=page

    See here for more information.

    If you want to understand why no post or page can be found, you add “&rutpdebug” or “&rutpdebug=2”.

    https://rafiee.net/?redirect_to=random&cat=248&post_type=page&rutpdebug=2

    The plugin was only developed for standard WordPress and not tested to work with other plugins.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin not working with pages’ is closed to new replies.