• Hi there

    We have a website with all blog posts under the permalink structure baseurl.com/blog/[article-title]

    so the base url for all events at the moment is also baseurl.com/blog/event/[event-title]
    to avoid this, I’ve just added ‘with_front’ => false in the register_post_type of vsel.php and it would be nice if you could add this too for the furture releases ??

    Thanks and best,
    Michael

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi Michael,

    Will do that, useful addition.
    Don’t know when plugin gets an update, until now your tweak is the only thing I have for new version.

    Guido

    Thread Starter Michael

    (@flinkthink)

    Hi Guido,

    Thanks for the update. I’ve noticed, that you missed the “with_front” argument. Could you please add it in the future updates?

    Here my code

    	$vsel_args = array(
    		'labels' => $vsel_labels,
    		'menu_icon' => 'dashicons-calendar-alt',
    		'public' => $public_event,
    		'can_export' => true,
    		'show_in_nav_menus' => $show_in_menu,
    		'has_archive' => $has_archive,
    		'show_ui' => true,
    		'show_in_rest' => true,
    		'capability_type' => 'post',
    		'taxonomies' => array( 'event_cat' ),
    		'rewrite' => array( 'slug' => esc_attr($event_slug), 'with_front' => false ),
     		'supports' => array( 'title', 'thumbnail', 'page-attributes', 'custom-fields', 'editor' )
    	);

    Best,
    Michael

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Base URL with front’ is closed to new replies.