Can I create my own query in wordpress with traditional methods?

With some assistance from @JacobPeattie I modified the code to the recommended get_tags() function. Now in the functions.php I have the following code. // Get al the tags with published post function get_all_tags(){ $posttags = get_tags(”); if ($posttags) { foreach($posttags as $tag) { echo ‘<li><a href=”#”>’.$tag->name.'</a></li>’; } } } In the single.php file, I call … Read more

Can WordPress show posts based on a button that the user clicked 2 pages back?

There are multiple ways of doing this. Use a session. Set a session and update your session value each time the filter has changed by the user. Check out PHP sessions. Use a cookie. Set a cookie and update your cookie value each time the filter has changed by the user. Check out PHP setcookie. … Read more

See when a tag was first added

The information is not stored but you may tweak it to fit your need. Refer: How to add a date creation field when a custom taxonomy relationship is created?

how to loop through blog posts in php

$args = array( ‘posts_per_page’ => -1, ‘post_type’ => ‘post’, ); $the_query = new WP_Query( $args ); If you set the posts_per_page to -1 it will return all posts. Then you can loop through and do what you want with the single post. while ( $the_query->have_posts() ) { echo get_the_author_meta( );//I have NOT used this so … Read more

Moving Blog and Changing URL

Take a look at my plugin T5 All URIs. It prints all current URIs for posts and terms. From function print_term_uris(): $terms = get_terms( get_taxonomies(), array ( ‘hide_empty’ => FALSE, ‘get’ => ‘all’ ) ); foreach ( $terms as $term ) { print “\n” . get_term_link( $term ); } But if you keep the same … Read more