request wp – facetwp orderby metakey & post status

A facetwp question here:
I build a site with listifier theme (based on wp job manager) & using facetwp filter the results. On the listify theme, there is an option to get some featured ads (sticky ad at the top of the search).
at my facetwp I sort the order of the results by the meta key "selected" (_Featured)
The fact is that after a list has expired, it is still featured.

I want to display both expired And publish posts – the expired lists must be down regardless of the meta key. I think that could be done by disabling facetwp meta keys index on expired post status.

All ideas and ideas will be appreciated!

That's the query I'm using:

    "Job offers",
"post_status" => array (& # 39; expired & # 39 ;, & quot; publish & # 39;)
"orderby" => array (
"meta_value_num" => "DESC",
"rand" => "ASC"
)
"meta_key" => "_featured",
)

wp query – How to extend WP_query to a specific table?

I've created a new table (named extrap) in the wordpress database (named wpsite_db). I have added unpublished pages directly to this table with wordpress and I want these pages to be taken into account when searching the site. But I do not know how to proceed. I did some research and learned that I would have to extend WP_query to my new table. But I am a novice and I do not know how to proceed in real life.

Can any one help me, please? Thank you in advance.

wp request – Sort messages by the number of times marked

Suppose I have a custom publication type Books and I tag them with a custom "Person" taxonomy. The taxonomy contains the name of a person and basically means that the person has read that particular book.

Thus, a book can obviously be labeled with several "people".

I want to list books and rank them according to the number of "people" who read them. Basically, count the number of "Person" tags, and order the books by that

I read the documentation on wp_query but I do not see how to do it. Is it feasible?

wp query – Woocommerce – Do not display the change in stockout on the filter

When I filter by size, all products of this size are displayed, even if the specific product size is out of stock.

I would like it not to display products whose filtered size has no stock.

Example:
Filter all "Small" size garments, all "Small" size products will be displayed, even if the "Small" product stock is 0.

Would you know how to do it?

Buy – F / T 2 Indian WP & 2 Indian eCommerce & WooCommerce Devs Recruitment – Salary

I am looking for TALENTED & EXPEREINECED INDIAN 2 WordPress Developers and 2 WooCommerce & eCommerce Developers with a monthly salary of Rs. INR 24,000 / month for each developer for my UK client working 8 hours a day, 7 days a week, according to the schedules of UK office.

I can pay you weekly through Freelancer.com escrow after daily submission of work and on satisfactory job results, then I will release the escrow every week, not before.
SEMrush

My client will launch a development challenge and the developers who have best resolved this challenge will get these 4 jobs.

You will need to enter into an acceptable legal agreement with me in this regard and I will send you this copy of the agreement via PM.

wp query – How to rearrange the publications according to the values ​​of the input fields added by WordPress "Advanced custom fields"

I want to sort publications in ascending order based on the value of the input field added in Advanced Custom Fields.

    & # 39; & # 39 ;, post
& # 39; post_status & # 39; => & Quot; publish & quot;
& # 39; category_name & # 39; => & # 39; events & # 39 ;,
& # 39; orderby & # 39; => & # 39; meta_value & # 39;;
& # 39; meta_key & # 39; => & # 39; event_date & # 39;
& # 39; order & # 39; => & # 39; ASC & # 39 ;,
& # 39; posts_per_page & # 39; => 10,
)
?>

have_posts ()) {
while ($ query-> have_posts ()) {
$ query-> the_post ();
echo & # 39;

& # 39 ;. get_field (& # 39; event_date & # 39;). & # 39; & # 39; get_field (& # 39; event_start_time & # 39;). & # 39; & # 39 ;. ~ get_field (& # 39; event_end_time & # 39;). & # 39;

& # 39 ;; } wp_reset_postdata (); } ?>

Outcome
The start time and the end time are not changed even if they are sorted according to the date of the event.

20190718 1800 ~ 1900
20190718 1900 ~ 2100
20190718 1000 ~ 1500
20190718 1715 ~ 1815
20190718 0900 ~ 1030
20190718 1400 ~ 1600
20190718 0900 ~ 1000
20190719 1900 ~ 2300
20190719 2000 ~ 2200
20190719 0900 ~ 1600

ideal result

    20190718 0900 ~ 1000
20190718 0900 ~ 1030
20190718 1000 ~ 1300
20190718 1000 ~ 1500
20190718 1400 ~ 1600
20190718 1700 ~ 1800
20190718 1715 ~ 1815
20190718 1800 ~ 1900
20190718 1900 ~ 2100
20190719 0900 ~ 1600
20190719 1900 ~ 2300
20190719 2000 ~ 2200

VirtualHost Redirection, WP Bitnami Multisite, AWS EC2, Ubuntu 16.04, Apache 2.4.39

Bitnami WordPress Multisite on an AWS EC2 instance, Ubuntu 16.04, Apache 2.4.39

Do you want to use the redirect directive inside VirtualHost sections in /opt/bitnami/apache2/conf/extra/httpd-vhosts.conf redirect old site / old page at new site / new page

Here's what I'm having right now


  
  
  
  ServerAdmin webmaster@old-site.com
DocumentRoot "/ opt / bitnami / apps / wordpress / htdocs"
ServerName www.old-site.com
ServerAlias ​​old-site.com
Redirect permanent / old-page / https: // new-site / new-page /
Redirect https: // new-site / new-page / permanent / old-page



  
  
  
  SSLEngine on
SSLCertificateFile "/opt/bitnami/apache2/conf/primary-site.com.crt"
SSLCertificateKeyFile "/opt/bitnami/apache2/conf/primary-site.com.key"
ServerAdmin webmaster@old-site.com
DocumentRoot "/ opt / bitnami / apps / wordpress / htdocs"
ServerName www.old-site.com
ServerAlias ​​old-site.com
Redirect permanent / old-page / https: // new-site / new-page /
Redirect https: // new-site / new-page / permanent / old-page

I have tried many variants and the only one that works is the redirection of http: // old-site / old-page /

From these three, it does not work:
http: // old-site / old-page
https: // old-site / old-page /
https: // old-site / old-page

It just displays old site / old page / (that is the content of this page)

Any suggestions would be greatly appreciated!

wp admin – I used Duplicator to move my WP site to the root of my host, but my Astra pages are missing.

The pages are not displayed in wp admin. Did I make a stupid mistake? Duplicator copies all the files and directories (he created a zip file), so I assumed that the pages I created would also be reported.

I've used duplicator in this way to remove .wordpress from the site's URL, by the way.

EDIT: The astra-sites folder seems to have backup and import files. Could these pages contain the pages I've done, and if so, how could I use them? Sorry, I'm a huge noob trying to create a website for the first time.

EDIT 2: I realized that I probably should have exported the pages as an xml file and then imported them. I guess it's too late for that. However, I still have access to the database on which the site was originally located (I created a new one for the migration). Is there a way to recover / import the contents of the original database?

Functions – Contact Form 7 – Convert to Wp Registration Form

a very nice man shared this code to add to the function file a theme that will convert a cf7 form into a registration form. There is a plugin but the developer seems to have abandoned it. The code that a man shared on the point discussed works for a form by calling his name. I ask if there is a way to modify the code so that it can work for three forms and not just one, perhaps calling for each title using "or". Thank you in advance for any advice, very appreciated.
I've confirmed that it works for a form:

function create_user_from_registration ($ cfdata) {
if (! isset ($ cfdata-> posted_data) && class_exists (& # 39; WPCF7_Submission & # 39;))) {
// Contact form 7 version 3.9 deleted $ cfdata-> posted_data and now
// we need to get it from an API
$ submission = WPCF7_Submission :: get_instance ();
if ($ submission) {
$ formdata = $ submit-> get_posted_data ();
}
} elseif (isset ($ cfdata-> posted_data)) {
// For versions prior to 3.9 of the contact form 7
$ formdata = $ cfdata-> posted_data;
} other {
// We can not retrieve form data
return $ cfdata;
}
// Check that it is the user registration form
if ($ cfdata-> title () == & # 39; Registration: Retailer & # 39;) {
$ password = wp_generate_password (12, false);
$ email = $ formdata['email'];
$ name = $ formdata['username'];
// Build a user name from the name of the user
$ username = strtolower (str_replace (& # 39;, & # 39;, $ name));
$ name_parts = explode (& # 39;, $ name);
if (! email_exists ($ email)) {
// Find an unused user name
$ username_tocheck = $ username;
$ i = 1;
while (username_exists ($ username_tocheck)) {
$ username_tocheck = $ username. $ i ++;
}
$ username = $ username_tocheck;
// Create the user
$ userdata = array (
& # 39; user_login & # 39; => $ username,
& # 39; User_Pass & # 39; => $ password,
& # 39; user_email & # 39; => $ email,
& # 39; pseudonym & # 39; => reset ($ name_parts),
& # 39; display_name & # 39; => $ formdata['company'],
& # 39; first name & # 39; => $ formdata['firstname'],
& # 39; last_name & # 39; => $ formdata['lastname'],
& # 39; role & # 39; => & # 39; client & # 39;
)
$ user_id = wp_insert_user ($ userdata);
if (! is_wp_error ($ user_id)) {
// Send login details to the user
$ blogname = wp_specialchars_decode (get_option ('blogname'), ENT_QUOTES);
$ message = "Hello! We have received your registration request and we are waiting for approval (be sure to register this email) .We are proud to verify that you are a legitimate business before you". approve your account Your login details are: ". " r  n";
$ message. = sprintf (__ (username:% s), $ username). " r  n";
$ message. = sprintf (__ (Password:% s), $ password). " r  n";
$ message. = home_url (). " r  n";
wp_mail ($ email, sprintf (__ (& # 39;[%s] Your username and password are pending approval: SAVE THIS E-MAIL (), $ blogname), $ message);
}
}
}
return $ cfdata;

}
add_action (& # 39; wpcf7_before_send_mail & # 39 ;, create_user_from_registration & # 39 ;, 1);