How to display post tag on each post? [closed]

I need to display it on each post and only the first state if it has multiple states I noticed there are $categories = get_the_category(); and echo esc_html($categories[0]->name); in your code, which display the first category for the current post, but then note that get_the_category() only returns results for the default/core category taxonomy. For custom … Read more

List page is showing 404

Having the permalink as /%postname%/ it doesn’t work either if I switch back to the original WP theme and disable all plugins. It works though if I change the permalink to the predefined /%year%/%monthnum%/%postname%/ or to a custom /%year%/%postname%/ permalink. From my point of view, it is a WP bug.

Forcing page to top of the list when using get_pages

if the result of query_posts($args) is the array of which you want to modify the order, something like that could possibly work: $the_posts = query_posts($args); $mypost = []; for ($i=0;$i<sizeof($the_posts);$i++){ if ($the_posts[$i][‘id’] === ‘196’): $mypost = $the_posts[$i]; unset($the_posts[$i]); endif; } if(!empty($mypost)): array_unshift($the_posts,$mypost); endif; //your loop with the new post array foreach $the_posts as $post_iteration: setup_postdata($post_iteration); … Read more