• Hello, is there any way to change the post slug for blog items from blog-post to something else? I took a look at the code and it seems to be hard-coded. It would be great to have a settings page with the ability to change the blog post slug in a future update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rafik

    (@rafikwp)

    Hello,

    You change the slug by the filter like this way

    function example_callback( $example ) {
    	$example['rewrite']['slug']='your-new-slug';
        return $example;
    }
    add_filter( 'wpbaw_blog_registered_post_type_args', 'example_callback' );

    Thanks

    Thread Starter Yannick Lefebvre

    (@jackdewey)

    Ah. Indeed. I had missed that add_filter call as I looked through the code. Thanks for the quick response. Works as expected.

    Plugin Contributor Ketan Patel

    (@patelketan)

    Hello,

    If you like this Plugin Please give your Important Rate and Review Here…

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change slug from blog-post’ is closed to new replies.