How to include post count in this “get_tags” snippet

where exactly? example below is for the count getting shown in brackets after the tag name, outside the link: <?php $tags = get_tags(); if ($tags) { foreach ($tags as $tag) { echo ‘<li><a href=”‘ . get_tag_link( $tag->term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in %s” ), $tag->name ) . ‘” ‘ … Read more

How can i manually relate pages?

2 possible solutions spring to mind, both fairly straightforward: Use a custom taxonomy to create groups then add the accessories and main product to the same group Add an interface that updates the post_parent field to mark items as accessories for a specific product With either of these approaches you get a fairly easy way … Read more

The pagination doesn’t work

If this is a new WordPress install, it is likely that you don’t actually have enough posts to require pagination, and thus the pagination links aren’t appearing. Quick test: ensure you have at least two posts, then go to Dashboard -> Settings -> Reading, and change the “Posts Per Page” setting to 1. Do you … Read more

sort a custom field base on the date or anything

Multiline is not an array (rant) You need to use standard dates for this to work DD/MM/YYYY (first row) Use the PHP function usort() to sort the fields Use strtotime() to convert that date to a timestamp and date_i18n() to output it If you need an actual example, change the date formats to what I’ve … Read more

Excerpt is only getting shown for first post

I suspect you’re misusing query_posts(), which is always and only ever intended to modify the Primary Loop. query_posts() is meant for altering the main loop. Once you use query_posts(), your post-related global variables and template tags will be altered. Conditional tags that are called after you call query_posts() will also be altered – this may … Read more