Support » Plugins and Hacks » Question and Answer Forum » How to remove ?post_type=question from url
3 years, 11 months ago
How to remove ?post_type=question from url.
For example i have link structure to display posts from single category like this:
is it any way to remove ?post_type=question from the end of link?
3 years, 9 months ago
I am also looking for the solution of removing the ‘?post_type=question’ from url. Please do reply.
I didn’t find the solution (
I found the solution but it creates pagination problem.
Here the solution
$args = array(
‘posts_per_page’ => ”,
‘cat’ => $cat,
‘post_type’ => array( ‘post’, ‘page’, ‘custom_posttype’)
3 years, 8 months ago
I found this thread searching for a similar issue. I posted my eventual solution here:
Hope it helps somebody else stumbling upon this thread trying to remove ?post_type=blah from their urls.
Love & joy – Callum.