Title: Plugin not working with pages
Last modified: August 31, 2021

---

# Plugin not working with pages

 *  Resolved [majidmad](https://wordpress.org/support/users/majidmad/)
 * (@majidmad)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-with-pages/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-not-working-with-pages%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-with-pages/#post-14822063)
 * 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](https://documentation.chattymango.com/documentation/redirect-url-to-post/getting-started-redirect-url-to-post/search-parameters/)
   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.

 * ![](https://ps.w.org/redirect-url-to-post/assets/icon-256x256.png?rev=1742449)
 * [Random Post Plugin - Redirect URL to Post](https://wordpress.org/plugins/redirect-url-to-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirect-url-to-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirect-url-to-post/)
 * [Active Topics](https://wordpress.org/support/plugin/redirect-url-to-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirect-url-to-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirect-url-to-post/reviews/)

## Tags

 * [page](https://wordpress.org/support/topic-tag/page/)

 * 1 reply
 * 2 participants
 * Last reply from: [Christoph](https://wordpress.org/support/users/camthor/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-with-pages/#post-14822063)
 * Status: resolved