Generating a radius search on postmeta-metavalue and adding a taxonomy to query

Well, they say perseverance is the key… Having found a link in the RELATED questions.. https://stackoverflow.com/questions/17588525/how-to-join-post-meta-and-taxonomy-table-wpdb-mysql, I got the answer. Ok, its not using Native parameters as suggested, nor does it give excessive load times as thought (its only displaying 5 properties max in a sidebar widget). Not Everyone who asks a question here is … Read more

Custom Post Type and Taxonomies, creating the corresponding template file and loop the data

I figured out the answer, since I am registering my taxonomy as phototype I simply have to create a file named taxonomy-phototype.php and inside that I will get the data by looping like I normally would in wordpress <?php if (have_posts()): ?> <?php while (have_posts()) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> <?php … Read more

WordPress custom post type advise

I personally would do a custom post type for photographs, and custom taxonomies for venues and seasons (or probably a hierarchical taxonomy that used venue and season in one). As for archives – archives.php (or archive-custompost.php) (or taxonomy-custom.php) are simply templates. You can add whatever you want to it. As for saving “page” data, you … Read more

Get newest value of an array

It sounds to me like you want to get the most recent term from your issue_filter taxonomy. To do that you’d want to use get_terms() with a few arguments. $t = get_terms( ‘issue_filter’, array( ‘orderby’ => ‘id’, ‘order’ => ‘DESC’, ‘number’ => 1, ‘fields’ => ‘ids’ ) ); That should get you the most recently … Read more

Custom taxonomy page template

You should follow appropriate naming convention (aka Template Hierarchy) of your templates to make your job done. If I’m clear about your query here then I’d suggest you to name your custom taxonomy archive template(s) as “taxonomy-{your-taxonomy-name-here}.php” (i.e. taxonomy-vegetable.php, taxonomy-fruit.php and so on) There must not be any blank space or underscore between two words … Read more