Split posts into 2 separate streams

Assuming the following You are using WP default Post type When you say tagged you mean you used categories and not the tag system You have at least the following categories 2015 and 2016, and that you have categorized all of your posts accordingly You are using the default blogroll of WP If I assumed … Read more

How to modify list categories code?

I’m now using the following code which allows me to format the list as required: <?php if (is_category( )) { $thiscat = get_category( get_query_var( ‘cat’ ) ); $catid = $thiscat->cat_ID; $parent = $thiscat->category_parent; if (!empty ($parent) ) { //child category pages $catlist = get_categories( array( ‘child_of’ => $parent, ‘orderby’ => ‘id’, ‘order’ => ‘DESC’, ‘exclude’ … Read more

Display only children of custom hierachial taxonomy

Based on our comment discussion, you’re using the code in a sidebar widget (that accepts php code) on a single post page. It ended up being much more complex than expected. This should work though. <?php $taxonomy = ‘download_category’; $terms = wp_get_object_terms( get_the_ID(), $taxonomy ); $parents = array(); // Loop through all album categories. foreach … Read more

Remove “Category:”

After your edit it makes more sense. First, you should really read up on filters. They exist to modify the behaviour of functions. They are included in functions.php. So if you use the function the_archive_title it contains a filter get_the_archive_title to modify its output. It looks like you got your code snippet from that developer … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)