Skip to main content

Questions tagged [optimization]

The tag has no usage guidance.

0 votes
0 answers
20 views

How do I preload a Shortcode in Wordpress [closed]

I have a shortcode [ws_form id="1"]. This shortcode is to display a fillable form on my website. This form is present on most of my webpages and I would like to preload it. How do I do that? ...
Meghana99's user avatar
0 votes
0 answers
30 views

How to cache results of of get_available_post_statuses() function as it is causing a slow query on a website with over 1 million posts?

The function get_available_post_statuses() is being called by WP_Posts_List_Table->prepare_items(), which is calculating posts on each load of admin. Since this is a core wordpress function and I ...
dc09's user avatar
  • 195
0 votes
0 answers
16 views

Child sites are slowly loading images from main site (main site is super fast)

We have an un-solved (and very large) speed issue with this site: https://micronordic.com/dk/ and all other 26 child sites on the http://micronordic.com/ domain. The child sites are loading the images ...
Jens Kirk's user avatar
  • 111
0 votes
0 answers
35 views

I need to optimize a website and I want it to import the js libraries only when I need themL

My problem is that I need to optimize a website, one of the ways is by removing that JS that is not used in the page, the website is quite large, I have managed to remove that JS that is not used but ...
Miguel Angel Salas8's user avatar
0 votes
0 answers
21 views

Can I Load posts from an External database if the post is not found on Main Wordpress Database

I have a WordPress Site on a dedicated server (on a considerably larger Capacity Server - 128GB RAM/64 Processor - 2TB NVme). THE PROBLEM We have a considerably large amount of data inside the ...
Rhema's user avatar
  • 1
0 votes
2 answers
436 views

How to reduce uncached page generation time?

On uncached pages, I have been able to bring down database query timinings to less than 0.2 seconds with sql tuning. However, the page generation time is still around 2 seconds as seen below via query ...
dc09's user avatar
  • 195
0 votes
1 answer
52 views

WordPress - Optimize the Meta Query for 3 meta keys at a time

Records in post_meta as follow: post_id key value 1 price 10 1 price_to 5000 2 price_type 'POA' 3 price 12000 3 price_to 17000 4 price 1200 4 price_to 8000 5 price_type 'POA' Code Snippet &...
Mahesh Thorat's user avatar
0 votes
0 answers
35 views

Optimize blog that serves hundred of images and videos

We have a website that contains 20,000+ media. It serves images and videos per post(500 post as of now). Opening posts takes a very long time to open because it contains images(500+) and videos(50+). ...
user14772091's user avatar
0 votes
0 answers
211 views

Serve images as webp if browser support

I want to serve webp images if the browser support as Google Page Speed is asking me to serve images in next-gen format , I am looking for a solution without using any plugin : I have found some code ...
Ahmed C's user avatar
1 vote
0 answers
41 views

Enable webp support Nginx+Apache reverse proxy with moss.sh [closed]

I am scratching my head from last few hours but unable to get reliable source to solve below problem. Actually, I am trying to setup WP Smush (or any webp plugin) with webp support on Nginx + apache ...
Aman Singh's user avatar
0 votes
1 answer
103 views

How to add some basic inline CSS using existing plugin or theme?

Sometimes you have a theme or a very lightweight WordPress plugin (like a single PHP file) and you want to add some CSS easily without having to load more files or folders, etc. How can you add some ...
Jesse Nickles's user avatar
1 vote
1 answer
2k views

Best way to search and replace within serialized database strings?

The frustration of serialized data in WordPress has been around for years... trying to search and replace strings in your database using tools like WP-CLI, MySQL queries, or even plugins like Better ...
Jesse Nickles's user avatar
0 votes
0 answers
125 views

Optimising WP_Query with ACF Fields

I am wondering if it's still possible to optimise the WP_Query or also if there's another way of doing it. I have the post type and a custom post type called case-study which gets displayed on the ...
Erick T's user avatar
0 votes
1 answer
20 views

My authors need to be able to preview their upload images and manipulate and scale

I am using a form and that form allows for IMAGE UPLOAD. After submission the form redirects and then they can see the reviewed post - however if the image which they uploaded blindly does not look ...
Nenno007's user avatar
0 votes
1 answer
340 views

Obfuscate links (for SEO purpose) [closed]

Link obfuscation is a more and more common topic in order to improve SEO by masking the non-important links to provide more weight to others. I'm looking for an efficient way to obfuscate links in ...
rAthus's user avatar
  • 171

15 30 50 per page
1
2 3 4 5
13