I’m using the short code but there are some categories I would like to show in one color and then other categories should show in a different color. LesTexas60 You can use the display_posts_shortcode_post_class filter to customize the classes added to each post. Here’s how to add a class for each category attached to a post:
If you are using Polylang or Polylang Pro to translate content on your website, you can also query by posts in a specific language. See the documentation for more information.
The image_size parameter lets you include a thumbnail in your post listing, but it only works if the post has a featured image attached to it. The code snippet below lets you specify a default image ID to use in case a post doesn’t have a thumbnail. You can find the image ID by going […]
Sugar Calendar, like most other event calendars, stores the event dates as metadata. To sort your results by the event date (meta_key is sc_event_date_time) use: That will list every event starting with the oldest to newest. If you want to list only upcoming events, we’ll need to do a meta query. This specific meta query […]
Is there any way to show siblings of the current page? TIA! Jay Collier Yes, you can use the following shortcode: That will list all the subpages with the same parent as the current page