How to add thumbnail support to WordPress next / previous post loop?

Wherever you want to place your image: <?php get_the_post_thumbnail( get_previous_post(), [ 150, 150 ] ) ; ?> <?php get_the_post_thumbnail( get_next_post(), [ 150, 150 ] ) ; ?> You can replace the sizes [ 150, 150 ] with the ‘thumbnail’. Edit: The code that works for me: $next_post = get_next_post(); $previous_post = get_previous_post(); the_post_navigation( array( ‘prev_text’ … Read more

WP_Query filter Posts by timestamp event (range start and end) and by month (next 12 month)

Resolved. My error are there : $FirstDayThisMonth[] = date(‘Y-m-01 00:00:01’, mktime(0, 0, 0, $x, 1)); $LastDayThisMonth[] = date(‘Y-m-t 23:59:59’, mktime(0, 0, 0, $x, 1)); instead of : $datestart = strtotime(date(‘Y-‘.$nbofmonth.’-01 00:00:01′)); $dateend = strtotime(date(‘Y-‘.$nbofmonth.’-t 23:59:59′)); It’s always very annoying to have well written code and to realize that a small element breaks everything

Bulk import in custom taxonomy

The Function: Add new terms and term meta values from .csv file below should help. 1. Requirements The .csv file must have a header row. The function below is defined to receive a .csv with a minimum of three columns to fill these WP_Term fields: name, slug, and description. However, the suggested function updates and … Read more

newbie help with home page

That is usually the responsibility of your theme, so contact the theme author for support. (Theme support is out of scope here.) You may be able to do some CSS tweaking with ‘additional CSS’ in the theme. Use the browser’s Inspector (F9) to dig into that area to find the problem.