How to fix pagination for custom loops on front-page.php

TO get this solution to work. I simply enabled pretty permalinks. Incase you activate permalinks but you are getting server 404 error, this may imply that the .htaccess is not activated on your server. follow the steps below to get this sorted out. How to Activate an .htaccess file If you have access to the … Read more

display post multiple times based on array of dates

I don’t know what rwmb_meta() does. But if rwmb_meta(‘tbf_scheduledatetime’) returns array, then try something like this: … $images = rwmb_meta( ‘tbf_scheduleimage’, ‘type=image&size=full’); $dates = rwmb_meta(‘tbf_scheduledatetime’); var_dump( $dates ); … You’ll probably want to loop thru $dates and repeat the post data for each element in $dates.

Object of class WP_Query could not be converted to int inside shortcode

I rewrote the function based on a few other posts I have seen online and now have the following code which works without any errors. I am still open to any further suggestions on the best way to streamline this code even further it it can be. Thanks again function downloads_shortcode($atts){ extract(shortcode_atts(array( ‘download_type’ => ” … Read more

Query events post type after current date and timezone

date() PHP functions returns the value of time() PHP functions in the specified format. time() use server local time. If you want to get date/time based of WordPress configuration, you could use current_time(), a WordPress function, instead of native PHP functions. // ‘timestamp’ = Unix Timestamp or ‘U’ PHP time format $current_time = current_time( ‘timestamp’ … Read more