Can’t format content of Rich Text Editor in Template

Good question for your first question! Try running the variable through the_contnet Filter – You can use it like this: $editor_value = get_post_meta( $post->ID, “PLUGIN_VALUE”, true ); echo apply_filters( ‘the_content’, htmlspecialchars_decode( $editor_value ) ); I believe what’s happening is that whenever you save your postmeta, it is being escaped as it should and converted to … Read more

URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”

I used the following functions to solve this problem. //This adds a custom query variable to the permalink function add_custom_query_var( $vars ){ $vars[] = “shop_name”; return $vars; } add_filter( ‘query_vars’, ‘add_custom_query_var’ ); function add_rewrite_rules($aRules) { $aNewRules = array(‘shop/([^/]+)/?$’ => ‘index.php?pagename=shop&shop_name=$matches[1]’); $aNewRules2 = array(‘shop/([^/]+)/gallery/?$’ => ‘index.php?post_type=gallery’); $aRules = $aNewRules + $aNewRules2 + $aRules; return $aRules; } … Read more

Template for all categories of a custom post type?

The name you are using for taxonomy isn’t allowed. register_post_type() $taxonomy parameter says $taxonomy (string) (required) The name of the taxonomy. Name should only contain lowercase letters and the underscore character, and not be more than 32 characters long (database structure restriction). Default: None So, you need to change the name cat-listings to something else( … Read more