WordPress – List Sub Categories and Sub-Sub Categories, With Posts

Try This : <!– Category Archive Start –> <ul class=”catArchive”> <?php $catQuery = $wpdb->get_results(“SELECT * FROM $wpdb->terms AS wterms INNER JOIN $wpdb->term_taxonomy AS wtaxonomy ON ( wterms.term_id = wtaxonomy.term_id ) WHERE wtaxonomy.taxonomy = ‘category’ AND wtaxonomy.parent = 0 AND wtaxonomy.count > 0″); $catCounter = 0; foreach ($catQuery as $category) { $catCounter++; $catStyle=””; if (is_int($catCounter / … Read more

Get images by category

‘category_name’ => ‘slides’, that appears to be all that is needed. Not sure if there is a more appropriate way but it is working. The WordPress documentation has to be some of the worst formatted and organised out of any major software documentation. Plenty of information just so hard to navigate.

How to Retrieve Post ID of another page

I think this can ve achieved using hidden fields if the single post form Add a field like this in your form <form> YOUR CODE GOES HERE ——————- <input type=”hidden” name=”mypostid” value=”<?php get_the_id(); ?>” /> </form> And the page where this form is posting the data you can get the data for the field mypostid … Read more