leemasondesign
Forum Replies Created
-
Hi
I’d like to reopen this ticket as I have started having the exact same problem.
I only have a handful of essential plugins besides Elementor (CPTUI, ACF and YOAST SEO). Everything was fine then eout of nowhere (no recent updates) Elementor stopped working with YOAST. I disabled all plugins, switched to WP 2020 theme and reactivate one-by-one and all work fine – until you active YOAST and you can no longer edit a page, as it brings up a critical error. This is not just with Elementor, but via WP editor also.
I reinstalled YOAST, which did nothing.
My memory is 256mb, PHP version is 7.2, so I don’t think there are any system requirement issues.
Any ideas?
Thanks, Lee
Hi Guido
Sorry – you did indeed, I had sent over my follow up before realising you had responded, thanks kindly for your response – I will test now!
Thanks,
Lee
Actually – please ignore me, I’ve just realised I was pulling in the date correctly first time around using this code below ….. but it was an unrecognisable sequence of numbers, so I thought my code was wrong – but turns out the date is just showing as
1600214400 – which appears to be pulling the time instead??
Please view it live here: http://lmd-1.co.uk/ (where it says test event)
Please view here the date isn’t working:
——
// CREATE A CUSTOM SHORTCODE FOR A LOOP THAT SETS POST THUMBNAIL AS IMAGE BACKGROUND FOR VSEL
function events_loop_shortcode() {
$args = array(
‘post_type’ => ‘event’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => 1,// Limit to one latest post
);$my_query = null;
$my_query = new WP_query($args);if($my_query->have_posts()):
while($my_query->have_posts()) : $my_query->the_post();$event_image_url = wp_get_attachment_url ( get_post_thumbnail_id($post->ID) );
$widget_start_date = get_post_meta( get_the_ID(), ‘event-start-date’, true );echo ‘<div class=”event-box” style=”background-image: url(‘. $event_image_url .’)”>’; //Set post thumbnail as background container image
echo ‘<div class=”event-info”>’; //Wrapper for event info
echo ‘<div class=”event-title”><h3>‘. get_the_title( $id ).’</h3></div>’; // The event title
echo ‘<div class=”event-date”><h3>‘. $widget_start_date .’ something….</h3></div>’; //The date
echo ‘</div>’; // Close event info wrapper
echo ‘</div>’; //Close event boxendwhile;
wp_reset_postdata();else :
_e( ‘Sorry, no posts matched your criteria.’ );
endif;
}add_shortcode( ‘events-loop’, ‘events_loop_shortcode’ );
——
Thanks Lee
Thanks Guido…..
So (for the purpose of setting the event image as the background of a div on the homepage) I created my own shortcode.
It is currently pulling the ‘Event Featured Image’ and the ‘Event Title’ – but I would also like to pull the ‘Event start date’ , ‘Event end Date’ – and was not able to figure out what ID’s/hooks to use for these?
The code is:
// CREATE A CUSTOM SHORTCODE FOR A LOOP THAT SETS POST THUMBNAIL AS IMAGE BACKGROUND FOR VSEL
function events_loop_shortcode() {
$args = array(
‘post_type’ => ‘event’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => 1,// Limit to one latest post
);$my_query = null;
$my_query = new WP_query($args);if($my_query->have_posts()):
while($my_query->have_posts()) : $my_query->the_post();$event_image_url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
echo ‘<div class=”event-box” style=”background-image: url(‘. $event_image_url.’)”>’; //Set post thumbnail as background container image
echo ‘<div class=”event-info”>’; //Wrapper for event info
echo ‘<div class=”event-title”><h3>‘.get_the_title( $id ).’</h3></div>’; // The event title
echo ‘<div class=”event-date”><h3>‘.$widget_start_date.’</h3></div>’; //The date
echo ‘</div>’; // Close event info wrapper
echo ‘</div>’; //Close event boxendwhile;
wp_reset_postdata();else :
_e( ‘Sorry, no posts matched your criteria.’ );
endif;
}add_shortcode( ‘events-loop’, ‘events_loop_shortcode’ );
———–
Thanks, Lee
Forum: Plugins
In reply to: [Adaptive Images for WordPress] Plugin doesnt seem to workThanks Takis!
The browser cache is actually set to default 6 months.
Images are starting to come in now – so all seems good.
Not sure why it took you some hard refreshes, or why Ive not seen any images in the folder until now though.
It has essentially duplicated the UPLOADS folder directory into the ADAPTIVE IMAGES folder, which is cool, as you can cross reference the adaptive images with the original uploads.
So I’m ok now – thanks for testing it!!
Lee
Forum: Plugins
In reply to: [Adaptive Images for WordPress] Plugin doesnt seem to workThanks,
That’s what I thought, it’s just not creating any downsized images and the folder is empty on my FTP server
The url is: http://www.lmd-1.co.uk/
I have viewed the page in Chrome Dev Tools, it doesn’t appear to be loading anything but the full size 2000px images.
Any help greatly appreciated!!
Thanks,
Lee
Forum: Plugins
In reply to: [Adaptive Images for WordPress] Plugin doesnt seem to workHi
I have the exact same issue.
So I don’t quite understand yet the purpose of the cache/adaptive-images folder, if no images are actually being physically created (I certainly can’t view them if I FTP that directory – it’s always completely empty).
I don’t have any other caching plugins, I just have visual composer, Qode Bridge theme and a couple of small plugins like Simple Page order.
I’ve accessed the website from mobile, etc…. but still no differently sized images in the folder
???????
Thanks,
Lee