• 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!

Viewing 1 replies (of 1 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    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()?

Viewing 1 replies (of 1 total)
  • The topic ‘apply mod rewrite to posts only – not pages’ is closed to new replies.