Structure with category setting

I’m pretty sure i missunderstood you… Approach: Categories & Terms (built in taxonomies) You have got categories (hierarchical built in taxonomy) & terms (non-hierarchical built in taxonomy). You can also assign terms to categories. So i’d say, you can take the following approach using the built in taxonomies: shoes (parent category) boots (child category) sneakers … Read more

How to pull a number posts from a specific Taxonomy within a Custom Post type

The get_the_terms() returns a list of term objects. So first of all, you need to treat the output as a list rather than a single element. The name you’re looking for is stored in the name field. $artistnames = get_the_terms($post->ID, ‘artist’); if (!empty($artistnames)) : ?> foreach ($artistnames as $obj) { $name = $obj->name; // Do … Read more

Redirecting to a post based on a GET parameter and a custom field

remove the else after the foreach: add_action(‘parse_request’, ‘fid_parse_request’); function fid_parse_request($wp) { // only process requests with “fid” if (array_key_exists(‘fid’, $wp->query_vars) && $wp->query_vars[‘fid’] != ”) { $args = array(‘post_type’ => ‘faculty_profile’, ‘meta_key’ => ‘wid’, ‘meta_value’ => $wp->query_vars[‘fid’] , ‘numberposts’ => 1); $redirect_to_post = get_posts($args); if (!empty($redirect_to_post ) ) { foreach ($redirect_to_post as $p) { $link = … Read more

Loop from another WP site onto mine

If you want to grab info right off the page you should use one of these options if you don’t want a plugin, the content can be returned and parsed as xml, rss, json or just html/text. This is the proper way to do this. WordPress HTTP API: http://codex.wordpress.org/HTTP_API or fetch_feed() ( for rss only). … Read more