I have custom post type with custom taxonomy. But not found the taxonomy page..

It’s not how taxonomy work. The apps_cat is just the taxonomy, not the term. Like category, you will receive not found with http://redesign.conei-sa.com/category. You must point to a specific term of apps_cat. apps_cat can’t have any post, only the term of it has. Anyway, if you got not found with term page, try update permalink … Read more

Sort results without WP_QUERY?

If you want to change the order of an already existing query, you shouldn’t create a new WP_Query object but instead use pre_get_posts to alter the existing query, which prevents multiple queries running unnecessarily. From the pre_get_posts docs: This hook is called after the query variable object is created, but before the actual query is … Read more

How add body_class from wp_termmeta

First check it is product category archive page using is_tax Then use get queried object_id to get the current term ID Then after you can use get_term_meta to get class name. Example: add_filter( ‘body_class’, ‘lalka_custom_taxonomy_in_body_class’ ); function lalka_custom_taxonomy_in_body_class( $classes ){ if (is_tax(‘product_cat’)) { $custom_class = !empty( get_queried_object_id() ) ? get_term_meta(get_queried_object_id(), ‘custom-class’, true) : FALSE; if … Read more

Creating custom post type posts and associating them with a post from another custom post type

Taken literally your question is about post to post relationships. Bad news — WordPress core doesn’t do post to post relationships. However there are some solutions ranging from frameworks like Posts 2 Posts to plugins like Post Connector. Stepping a bit back though, structure you are describing strongly implies grouping of posts. The mechanism for … Read more

Suggest Users basing on User taxonomy

You cannot query users by taxonomy. You will need to rethink your system. What would I do? Keep the taxonomies but use these only to output choosable values – wp_dropdown_categories() Save the selected value AS user meta, NOT AS taxonomies – update_user_meta() Now you can query users by that value – WP_User_Query() Example: This code … Read more

Get posts of a custom post type from category from taxonomy?

Since you’re using a custom taxonomy, you can’t use the category argument. You can find some information about custom taxonomy retrieval in this comment in the developer documentation. According to that, I think your $categoryArgs should be: $categoryArgs = array( ‘orderby’ => ‘post_date’, ‘order’ => ‘DESC’, ‘post_type’ => $type, ‘tax_query’ => array( array( ‘taxonomy’ => … Read more

Filtering elements by taxonomy slug

Have a look at the documentation for the_terms(). It requires at least two parameters – the post ID, and the taxonomy name. You’re not giving it either of these (I am of course assuming your taxonomy isn’t called taxonomy-name). However, you’re also using the wrong function for the situation. the_terms() is used to display (i.e. … Read more

WP Query – filtering terms with regex

This is untested, but give it a go. First get a list of the term names in the taxonomy. Then filter the returned array of names against your regex. Then use that filtered array of names for your WP query. // assumes these assignments: // // $taxonomy – the taxonomy name you are querying against … Read more

WordPress site with embedded menu – gives You don’t have permission to access /wp-content/themes/xxx/taxonomy-redirect.php on this server

The server is setup correctly, no one should be able to execute php which is not at the root directory of wordpress (if he cares about the site’s security). You can look into the htaccess or other server settings to figure out how it was done and remove it, but -10 for that option. The … Read more