query: How do I search for WordPress publications by categories and labels in addition to the title and content?

I would like to expand my site's default search fields (title and content) to include categories and tags without installing an add-on. Including the following code in functions.php it allows me to successfully search for publications by categories and labels, but searches for the title and content are no longer searched.

How do I search for publications on my site by category, label, title and content at the same time?

functions.php:

add_action (& # 39; pre_get_posts & # 39 ;, & # 39; include_taxonomies_in_search_query & # 39;);
include_taxonomies_in_search_query ($ query) function {
if (! is_admin () && $ query-> is_main_query () && $ query-> is_search ()) {
$ terms = $ query-> get (& # 39; s & # 39;);
$ taxquery = array (
& # 39; relationship & # 39; => & # 39; O & # 39 ;,
training(
& # 39; taxonomy & # 39; => & # 39; category & # 39 ;,
& # 39; field & # 39; => & # 39; name & # 39 ;,
& # 39; terms & # 39; => $ terms
)
training(
& # 39; taxonomy & # 39; => & # 39; post_tag & # 39 ;,
& # 39; field & # 39; => & # 39; name & # 39 ;,
& # 39; terms & # 39; => $ terms
)
);

$ query-> set (& # 39; tax_query & # 39 ;, $ taxquery);

add_filter (& # 39; posts_groupby & # 39 ;, function ($ groupby) {return & # 39; & # 39 ;;});
}
}

[GET][NULLED] – SNIP: Structured data complement for WordPress v2.12.1

[​IMG]
[​IMG]

[GET][NULLED] – SNIP: Structured data complement for WordPress v2.12.1

[GET][NULLED] – SNIP: Structured data complement for WordPress v2.12.1

[​IMG]
[​IMG]

[GET][NULLED] – SNIP: Structured data complement for WordPress v2.12.1

Notification by email after registration in WordPress

I would like the site administrator not to receive a registration email from a new user when the administrator himself uses the administration interface to add a user.

How can I limit the sending of a registration email only when a user completes the form?

// How can you limit email notification only in this case?

add_action (& # 39; user_register & # 39 ;, & # 39; user_registration_save & # 39 ;, 10, 1);
function user_registration_save ($ user_id) {
$ a = & # 39; & # 39 ;;
$ subject = & # 39; New registration with the form & # 39 ;;
$ message. = "Identifier:". $ user-> user_login. " r  n  r  n"
$ message. = "E-mail:". $ user-> user_email;
wp_mail ($ a, $ subject, $ message);
}

Good experience in Linux Web Hosting Administrator, PHP, WordPress, developer of WHMCS.

A level 2-3 administrator with experience in India looking for a job change in the same field. I would like to work remotely and could do it in any shift with an affordable payment scale.

I also have experience working in HTML, CSS, JavaScript, PHP, WordPress Development.

My experience
– Good relationship with the client and support assistance.
– Knowledge of basic concepts, concepts, essential elements of AWS.
– Resolution of problems related to the server.
– Installation and configuration of web hosting control panels such as Cpanel / WHM, Plesk, DirectAdmin, Virtualmin, etc.
– Handling problems in the node server such as OpenVZ, XEN, etc.
– VPS Migrations.
– Have experience in the management of VPS administration panels such as SolusVM.
– Installation and configuration of backup servers such as Idera / R1soft.
– Server audit.
– Provide support through the ticket sales system.

WordPress development.
-Manage subjects and accessories.
-Customization and implementation.
-Experience in coding in HTML and PHP.
-Experience in Codeigniter Web Framework.

WHMCS.
-Installation and configuration
-Ability to manage tickets.
-Manage and configure WHMCS functions such as Products / services, Personnel Management, Payments, Support, etc.

Contact email: febincareer360@gmail.com

Skype: febincareer360

Thank you.

php – WordPress external DB

Goodnight everyone!

Well come on, I have a php system with a database with some registered users and I have a website on wordpress. I wanted access to wp-admon, in the case the login was made by the users of that external bank of the php system. Would this be possible?

[MilesWeb] Limited offer | Save 50% on managed WordPress hosting with free domain, SSL

MilesWeb Make WordPress fast, easy and safe. Our WordPress hosting service fully managed. It is ideal for bloggers, web developers, WooCommerce stores, web design agencies and digital marketers. The WordPress hosting includes the latest WP version, add-ons, themes, 99.95% uptime and 24/7 support.

Obtain 50% OFF in Ace, Heart and Diamond managed the WordPress hosting plans. Enter promotion code WP50 during the exit. The renovation would be at a regular price.

Key features:

  • Free domain name
  • WordPress automatic updates
  • Fast SSD storage
  • Free SSL security
  • Preconfigured WordPress
  • Fast provisioning
  • Secure email
  • Jetpack Premium / Professional

Server locations:

Below is the list of Managed WordPress Hosting plans offered by MilesWeb.

As plan

  • Host 1 website
  • 1 GB of SSD disk space
  • 5 GB bandwidth
  • Free version of Jetpack

Discounted price: $ 1.00 / month – Buy now

Heart plan

  • Host 1 website
  • Free domain
  • Unlimited SSD disk space
  • Unlimited bandwidth
  • Unlimited email accounts
  • Free version of Jetpack

Discounted price: $ 3.00 / month – Buy now

Diamond plan

  • Host 3 websites
  • Free domain
  • Unlimited SSD disk space
  • Unlimited bandwidth
  • Unlimited email accounts
  • Free version of Jetpack

Discounted price: $ 7.00 / month – Buy now

Also get Custom WordPress hosting plansFor more information, visit: https://www.milesweb.in/hosting/wordpress-hosting

Technical characteristics:

  • Cloud Gun
  • HTTPS by default
  • Compression of GZIP / Brotli
  • SFTP access
  • WP-CLI
  • Dedicated WordPress support 24/7
  • CDN
  • Cloning
  • Server-side optimizations
  • Caching

We are a perfect host for your website

  • WordPress fully managed
  • Free WordPress migration
  • Built for performance

For immediate assistance, contact us: sales[@]milesweb[.]com or visit our website to start live chat.

Apache http server – WordPress Permalinks does not work on Nginx

I'm moving my wordpress blog from Apache to Nginx. I have tried several tutorials for the permanent links to work, but nothing works for me. The structure of my website is like this:

main site -> www.localhost.com

wordpress blog -> www.localhost.com/blog

Website is in / var / www / html and wordpress is installed in / var / www / html / blog

I have read several articles and watched several videos, but nothing seems to be working. Please let me know where I'm going wrong.

I have defined two server blocks in / etc / nginx / sites-available / default
One for the main site and one for the blog.

# Default server configuration
#
server {
listen 80 default_server;
listen out [::]: 80 default_server;

# SSL configuration
#
# listen 443 ssl default_server;
# listen out [::]: 443 ssl default_server;
#
# Note: You must disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read in ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self-signed certificates generated by the ssl-cert package
# Do not use them on a production server!
#
# includes snippets / snakeoil.conf;

root / var / www / html;

# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;

server name _;

utf-8 character set;
error_page 404 /404.php;

location / article {
rewrite ^ / article. * / redirect;
}

#Location / {
# try_files $ uri $ uri / /loadpage.php?$args;
#}

location ~  .html $ {
try_files $ uri /courses/index.php?$args;
}





# pass the PHP scripts to the FastCGI server that listens on 127.0.0.1:9000
#
location ~  .php $ {
includes code fragments / fastcgi-php.conf;
#
# # With php7.0-cgi only:
# fastcgi_pass 127.0.0.1:9000;
# With php7.0-fpm:
fastcgi_pass unix: /var/run/php/php7.0-fpm.sock;
includes fastcgi_params;

}

# Deny access to the .htaccess files, if the root of the Apache document
# matches with nginx
#
location ~ /.ht {
deny everything;
}
}



server {
listen 80;
listen out [::]: 80;
root / var / www / html / blog;
index index.php index.html index.htm;
server_name example.com www.example.com;

location / blog / {
try_files $ uri $ uri / / blog / index.php? $$ args;
}


location ~  .php $ {
fastcgi_split_path_info ^ (. + . php) (/.+) $;
fastcgi_index index.php;
# fastcgi_pass unix: /var/run/php/php7.1-fpm.sock; #Ubuntu 17.10
fastcgi_pass unix: /var/run/php/php7.0-fpm.sock; #Ubuntu 17.04
includes fastcgi_params;
fastcgi_param PATH_INFO $ fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;
}

}

php: the WordPress PDF generator does not work after the WordPress migration

Recently, I just migrated a website with a PDF generation code that generates PDF after sending a contact form 7.

Now I have some problems to generate PDF files on the new server.

Almost everything works fine, but only the pdf generation process does not work.

Resume the workflow.
1: The client fills in some information to contact the form 7.
2: After shipment, WordPress will generate a custom pdf and place it in the download folder.

Some code that I use.

// Download pdf
add_action (& # 39; wp_ajax_download_pdf & # 39 ;, & # 39; download_pdf & # 39;);
add_action (& # 39; wp_ajax_nopriv_download_pdf & # 39 ;, & # 39; download_pdf & # 39;);
Function download_pdf ($ EPebernName, $ streetAndNumber, $ zipAndCity, $ expiration_datez, $ brandName, $ countryName, $ articleNumber, $ articleDescription, $ unitCount, $ contactName, $ contactPhone, $ contactMail)
{


$ expiration_date = DateTime :: createFromFormat (& # 39; Y-m-d & # 39 ;, esc_attr ($ expiration_datez));

if (! $ expiration_date) {
$ result = matrix (
& # 39; status & # 39; => & # 39; ERROR & # 39 ;,
& # 39; message & # 39; => & # 39; Incorrect format for the expiration date (d-m-Y) & # 39;
);

echo json_encode ($ result);
wp_die ();
}


$ curl = curl_init ();
$ hash = $ _SESSION['returnUrl'];

$ fields = array (
& # 39; recipient & # 39; => $ recipient,
& StreetAndNumber & # 39; streetAndNumber & # 39; => $ streetAndNumber,
& # 39; zipAndCity & # 39; => $ zipAndCity,
& # 39; countryName & # 39; => $ countryName,
& # 39; articleNumber & # 39; => $ articleNumber,
& # 39; articleDescription & # 39; => $ articleDescription,
& # 39; unitCount & # 39; => $ unitCount,
ExpirationDate & # 39; expirationDate => $ expiration_date-> format (& # 39; d-m-Y & # 39;),
& # 39; brandName & # 39; => $ brandName,
& # 39; contactName & # 39; => $ contactName,
& # 39; contactPhone & # 39; => $ contactPhone,
& # 39; contactMail & # 39; => $ contactMail
);

curl_setopt_array ($ curl, array (
CURLOPT_PORT => "xxxxxx",
CURLOPT_URL => "xxxxxxxx",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode ($ fields),
CURLOPT_HTTPHEADER => array (
"content type: application / json",
)
));

$ answer = curl_exec ($ curl);
$ err = curl_error ($ curl);
$ inf = curl_getinfo ($ curl);

// test curl
curl_close ($ curl);

yes (! $ err) {
$ upload_dir = wp_upload_dir ();
$ path_to_file = & # 39; / downloads / & # 39 ;. $ hash. & # 39; .pdf & # 39 ;;
file_put_contents ($ upload_dir['basedir'] . & # 39; / .. & # 39; $ path_of_file, $ answer);
$ result = matrix (
& # 39; status & # 39; => & # 39; OK & # 39 ;,
& Url & # 39; url & # 39; => content_url (). $ path_to_file
);

} else {
$ result = matrix (
& # 39; status & # 39; => & # 39; ERROR & # 39 ;,
& # 39; message & # 39; => $ err,
& # 39; info & # 39; => $ inf,
);
}

}

wp query – WordPress post_status and meta_query

I created a custom publishing status and I would like to set automatic change (customers are filling in two dates, I pre-order Y on going).

How can I make a change of state auto-post when it's after? I pre-order or on going date?

I'm also trying to make my own filter listing publications: when I'm filtering by custom field, everything is fine, but I can not filter by taxonomy called job_listing_category.

If the guests select Art category then show only Art Category posts:

$ cat = get_terms (& # 39; job_listing_category & # 39;);
$ cat_array = array ();

foreach ($ cat as $ cat) {
if ($ value == $ cat-> slug) {
$ cat_array[] = $ cat-> slug;
}
}

$ meta_query = array (
& # 39; tax_query & # 39; => array (
& # 39; taxonomy & # 39; => & # 39; job_listing_category & # 39 ;,
& # 39; field & # 39; => & # 39; slug & # 39 ;,
& # 39; Terms & # 39; => $ cat_array
)
);

But I do not know why it does not work (even my $ cat_array it's not null, I get Art cat there).