Have Custom Taxonomy Slug Fall Under Custom Post Type Slug

You can do that by writing a function using the ‘generate_rewrite_rules’ WordPress hook. https://developer.wordpress.org/reference/hooks/generate_rewrite_rules/ <?php function guides_cpt_generating_rule($wp_rewrite) { $rules = array(); $terms = get_terms( array( ‘taxonomy’ => ‘venue-type’, ‘hide_empty’ => false, ) ); $post_type=”guide”; foreach ($terms as $term) { $rules[‘guide/’ . $term->slug . ‘/([^/]*)$’] = ‘index.php?post_type=” . $post_type. “&guide_post_type=$matches[1]&name=$matches[1]’; } // merge with global rules … Read more

Why can posts never have a number as the link?

Why Suffixes Are Appended to (Some) Numeric Post-Slugs WordPress posts can almost always have numeric permalinks, the exceptions being when they might conflict with another post, a feed, or a post post-type date archive, or are otherwise reserved. The wp_unique_post_slug() function mitigates these conflicts by appending a suffix. Potential date-archive conflicts arise when a numeric … Read more

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