• rocke

    (@shashibhushan)


    I want a custom page where i can get all post as per Url Parameter ( cat and tag )

    <a href="localhost/celeb_page.php?cat=38&tag=aamir-khan" >View All Photo of Aamir</a>

    hence if some one click above link then the post related to aamir khan will be seen as per its cat id and tag

    can any one help me?

    note its not any custom post and nor custom taxonomy

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You should be able to get the posts you want by requesting index.php with those URL parameters. What template is used is theme dependent, archive.php or category.php are typical.

    A category specific template can be used by naming it category-38.php.

    You basically cannot directly request a custom template because it does not have access to the WP environment. The closest you can come to this functionality would be to create a custom page template, the create a page post type based on that template. When you request that page, the template can access the URL parameters with $_POST.

Viewing 1 replies (of 1 total)
  • The topic ‘Get all Post as per Category and Tag ( from url parameter)’ is closed to new replies.