How to Remove Slug From Database?

I don’t exactly know about the word embed, but by default WordPress reserves & uses these sort of words for internal use. I tried to create a page slug named embed but it wouldn’t work for me either on my localhost or on my live server. Maybe this is reserved for WordPress oEmbed functionality.

how to get permalink using sql

I am not sure why you are using a custom query and not get_posts() or WP_Query as you should. Anyway, you need to get the post ID … $query =”SELECT wp_posts.post_title AS title , wp_posts.post_content AS content, wp_posts.post_date AS blogdate , wp_posts.ID AS ID And then just pass this ID to get_permalink(): get_permalink( $post->ID ); … Read more

Permalink for CPT with taxonomy

(Updated/new answer) So here I’m going straight to the code you need: (but do read the updated version of the original answer) Register the CPT’s and Set the proper rewrite slug This is for the “English Speaking” CPT, which is assigned to the custom taxonomy “Speaking Task”: register_post_type( ‘english-speaking’, array( ‘label’ => ‘English Speaking’, ‘public’ … Read more

How to control which category will be picked for the slug of a post?

WordPress picks the lowest ID as its main permalink. However, ALL categories will contain your post automatically. Meaning both these: http://yoursite/category-A/post-A http://yoursite/category-B/post-A …will return your post (given that post-A is in both category-A and category-B) via a redirect. It can’t list them all to you on the Edit page, sorry. But it will make sure … Read more

Slug for custom post type archive

Nothing appears to be incorrect – (and I assumed you’ve gone to saved your permalink structure to flush the rewrite rules as the comments suggest? 🙂 ). I would recommend using this plug-in to determine problems with your url-redirection: http://wordpress.org/extend/plugins/monkeyman-rewrite-analyzer/ – update your question with your findings and someone may be able to offer a … Read more

How to achieve this permalink -> category-name/custom-post-type-name/post-name

You have to filter ‘post_type_link’ to create the appropriate permalink. See this answer for a similar example. The following code works: add_action( ‘init’, array ( ‘WPSE_63343’, ‘init’ ) ); class WPSE_63343 { protected $post_type=”video”; public static function init() { new self; } public function __construct() { $args = array ( ‘public’ => TRUE, ‘rewrite’ => … Read more