My site is https://www.laurentlanglais.com
By running an analysis of my different plugin I have seen that the Acunetix plugging is the one that slows down my site the most. I believe it does a good job to protect my site but is there a way to make it load faster or do you know a lighter alternative? Thanks!
What I would like to be able to do is get the two most recent results and set those as separate variables. How can I go about doing this?
]]>Can someone help me? I tried copying the file from online after a Google search and that corrected the initial error but everytime I corect one I get another. I’m a rookie at this but follow instructions well. Help!!
]]>Here’s my current query in its entirety:
$attachments = $wpdb->get_results( $wpdb->prepare( "
SELECT ID
FROM $wpdb->posts
WHERE post_author = %d
AND post_type = 'attachment'
ORDER BY post_date DESC
LIMIT 0, 5",
$curauth->ID ));
Now I need to exclude any posts that are by that user that have a meta_key of ‘media’. Any suggestions?
Also, if there’s a way to do this using get_posts, please do fill me in! I couldn’t get it to work even without filtering out from postmeta using get_posts (but that’s for a later topic…).
Thanks,
Scott
Fatal error: Call to undefined function require_wp_db() in /home/mymini/public_html/wp-settings.php on line 250
Pleae advise.
Thanks,
Andrew