Custom permalink for specific category

I got an answer on the WordPress forums. Here is the working code for those looking to do something similar: add_filter( ‘post_type_link’, ‘change_webinar_links’, 10, 2 ); function change_webinar_links( $link, $post) { if ( $post->post_type == ‘tribe_events’ && tribe_event_in_category(‘webinar’) ) { $link = trailingslashit( home_url(‘/webinars/’ . $post->post_name ) ); } return $link; } add_action( ‘init’, ‘webinar_rewrite_rule’, … Read more

remove product-category base but still redirect to page with same permalink

Have a look at this https://kellenmace.com/remove-custom-post-type-slug-from-permalinks/ I use it with this plugin: Code Snippets By Shea Bunge This allows you to modify your functions.php file without having to directly edit it. This means WordPress core and theme updates won’t remove your changes. Finally, may I suggest you try using a staging plugin to make a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)