Posts being replaced/deleted
Posts being replaced/deleted
Posts being replaced/deleted
Problem querying new custom post type while old display fine
Custom post type child of custom post type
First, Please don’t use query_posts.. Second, you’ve set $category somewhere in code not posted and never change it. How do you expect it to be different? What you need to do is retrieve the categories, which isn’t that hard… $cq = new WP_Query(‘category__in=4′); while ( $cq->have_posts() ) { $cq->the_post(); $c = wp_get_object_terms($post->ID,’category’); var_dump($c); // echo … Read more
Show custom taxonomies in admin panel under custom post type
Custom folder structure and problem with 3rd party services
From the Codex: child_of (integer) Display all categories that are descendants (i.e. children & grandchildren) of the category identified by its ID. There is no default for this parameter. If the parameter is used, the hide_empty parameter is set to false. And… parent (integer) Display only categories that are direct descendants (i.e. children only) of … Read more
Why is WP_Query’s meta_query not filtering results?
Can’t open Custom Post Types Link in navigation
You can use is_single() in a conditional statement. <?php if( is_single() ){ ?> <ul> <li class=”Source”><a>source:</a></li> <ul class=”Source-Link”> <li><a href=”https://wordpress.stackexchange.com/questions/121060/<?php echo get_post_meta($post->ID,”source-link’, true); ?>” target=”_blank”><?php echo get_post_meta($post->ID, ‘source’, true); ?></a></li> </ul> </li> </ul> <?php }?> Be aware though that this will appear on any single page, meaning a single post page and a single page. … Read more