jackomar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress with 600K posts performance on post publish or updateHello,
Thank you Samuel(@otto42). what you mentioned was probably the main reason behind that.I have disabled RSS and also blocked bad bots. The slow queries disappears 🙂 and the server load becomes very low and stable.
I would like to thank @jnashhawkins as well for all the useful information and details.
Hello Michael
I did not find the bot name in the list. This is the block log I am getting:
2018-12-09 00:45:27 Blocked bot with IP 52.74.97.174 — matched user agent Mozilla/5.0 (compatible; Alexabot/1.0; +http://www.alexa.com/help/certifyscan;)\’ found in blocklist.
Thanks
Forum: Fixing WordPress
In reply to: WordPress with 600K posts performance on post publish or updateThank you @jnashhawkins
I will try the hyperDB for sure but I still do not understand why this query is triggered many times when posting or update a post
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Rslider image sizeHello,
Thank you
In fact, I need to change the actual image size and use a different one than the used in the functions file as bellow
<?php $image = wp_get_attachment_image_src( $tmp_post->ID, ‘large’ ) ?>I just want to change the ‘large’ image size but in my child them function file.
Forum: Plugins
In reply to: [Contact Form Submissions] Empty CSV fileHello,
It has been solved after removing the following search filter from the functions file:
function SearchFilter($query) {
if ($query->is_search) {
$query->set(‘post_type’, ‘post’);
}
return $query;
}add_filter(‘pre_get_posts’,’SearchFilter’);
Many Thanks
Forum: Plugins
In reply to: [Contact Form Submissions] Empty CSV fileHello,
There are 20 submission until now coming from two different forms. I also noticed that when using the filter to display only one form submissions, the records disappears along with the filter option itself.
Here is one of the forms content :<div class=”row”>
<div class=”col-md-4″>
<div class=”form-group”>
<label for=”first-name”>First name *</label>
[text* first-name id:first-name class:form-control]
</div>
</div><div class=”col-md-4″>
<div class=”form-group”>
<label for=”middle-name”>Middle name *</label>
[text* middle-name id:middle-name class:form-control]
</div>
</div><div class=”col-md-4″>
<div class=”form-group”>
<label for=”family-name”>Family name *</label>
[text* family-name id:family-name class:form-control]
</div>
</div><div class=”col-md-6″>
<div class=”form-group”>
<label for=”address1″>Address Line 1 *</label>
[text* address1 id:address1 class:form-control]
</div>
</div><div class=”col-md-6″>
<div class=”form-group”>
<label for=”address2″>Address Line 2 </label>
[text address2 id:address2 class:form-control]
</div>
</div><div class=”col-md-3″>
<div class=”form-group”>
<label for=”city”>City *</label>
[text* city id:city class:form-control]
</div>
</div><div class=”col-md-3″>
<div class=”form-group”>
<label for=”state”>Province/State *</label>
[text* state id:state class:form-control]
</div>
</div><div class=”col-md-3″>
<div class=”form-group”>
<label for=”zip”>Zip/Post Code *</label>
[text* zip id:zip class:form-control]
</div>
</div><div class=”col-md-3″>
<div class=”form-group”>
<label for=”country”>Country *</label>
[text* country id:country class:form-control]
</div>
</div><div class=”col-md-6″>
<div class=”form-group”>
<label for=”contact-email”>Your email address *</label>
[email* your-email id:contact-email class:form-control]
</div>
</div><div class=”col-md-3″>
<div class=”form-group”>
<label for=”tele”>Tel *</label>
[tel* tele id:tele class:form-control]
</div>
</div><div class=”col-md-3″>
<div class=”form-group”>
<label for=”business”>Business Name *</label>
[text* business id:business class:form-control]
</div>
</div><div class=”col-md-6″>
<div class=”form-group”>
<label for=”business-type”>Type of Business *</label>
[text* business-type id:business-type class:form-control]
</div>
</div><div class=”col-md-6″>
<div class=”form-group”>
<label for=”business-position”>Position in Business *</label>
[text* business-position id:business-position class:form-control]
</div>
</div><div class=”col-md-6″>
<div class=”form-group”>
<label for=”membership-type”>Membership Type:</label>
[radio membership-type id:membership-type default:1 “Member” “Associate” “Honorary” “Affiliate”]
</div>
</div>
<div class=”col-md-12″>
<div class=”form-group”>
[submit class:btn class:btn-primary class:btn-lg “Send Application”]
</div>
</div>
</div>Please note that I need to have two login popup because I want each one to be redirected to different page.