Get uri of CPT archive page

You would use the get_post_type_archive_link function. As you declined to provide the name of your post type ( but you did provide its URL slug ), I cannot provide a full example, however, it would be something similar to this: $link = get_post_type_archive_link( $post_type ); echo ‘<a href=”‘.$link.'”>View Archive</a>’;

Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]

If you’r using ACF plugin you should look the documentation first, here’s relevant ACF saves taxonomies terms meta to options table, and they can be accesed using get_field( “{$field_key}”, “{$term->taxonomy}_{$term->term_id}” ); So in you’r example it would be: $image = get_field( ‘featured_image’, ‘product-category_’ . $product_category[0]->term_id );

Running a custom query inside another cpt single and trying to grab a variable

Does this work? global $post; // make sure the post object is available $slug = $post->post_name; // get the slug // insert the slug into your query $args = array( ‘post_type’ => ‘client_prop’, ‘posts_per_page’ => 10, ‘tax_query’ => array( array( ‘taxonomy’ => ‘prop_neighborhood’, ‘field’ => ‘slug’, ‘terms’ => $slug, ) ) );

Enqueueing TinyMCE

You will need to set the third parameter of wp_register_script(), which is the dependency parameter, $deps. In your code, this is currently set to false, which should actually just be left out or set to an empty array, array() if not needed. In your case, you will set this with the handle of the script … Read more

How can I get 3 different taxonomy type terms in a div class element?

If using get_the_terms, you can just do your if loop once for each taxonomy and then join them after the three loops. Of course, it would probably be more efficient to use: wp_get_post_terms( $post_id, $taxonomy, $args ); You could then do something like: wp_get_post_terms( $post_id, array( ‘resource_roles’, ‘resource_media’, ‘resource_theme’ ) ); Which would pull all … Read more