• dwikix

    (@dwikix)


    Hello,

    Im trying to create custom post name “custom-post-x” so with my url rule it become mysiteurl.com/custom-post-x/postname

    and now i want to display all my custom post, can i use url mysiteurl.com/custom-post-x to display all my custom post? how?

Viewing 1 replies (of 1 total)
  • mdshak

    (@mdshak)

    Hi,
    Yes, you can create the url for custom post type as you desire. You need to add this argument in register custom post type ‘rewrite’ => array( ‘slug’ => ‘YOUR_SLUG’ ), .

    Thanks
    Mohammad

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress Custom Routing’ is closed to new replies.