WordPress.org

Ready to get started?Download WordPress

Forums

apply mod rewrite to posts only - not pages (2 posts)

  1. miura465
    Member
    Posted 6 years ago #

    Hello,

    I have built a plugin that uses $_POST to get the page id. I now need to install this plugin on a different WP installation that uses pretty permalinks. So the $_POST now does not work. This plugin only affects pages, not posts. so the easy fix would be to only have pretty permalinks applied to posts and leaving pages with ugly permalinks. does anybody know of any solution? hand editing .htccess is fine by me.

    THANKS!

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    I'm not quite understanding what you're trying to do... Get the current page and/or post ID? Why not just use get_the_ID()?

Topic Closed

This topic has been closed to new replies.

About this Topic