Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
1
vote
Accepted
Wordpress can't get image url but both the attachment and the actual file are there
Culprit found!
The wp_postmeta table's meta_id field didn't have an auto_increment attribute.
How I found the solution:
I was checking if wp_attachment_is('image') would return true or false for a par …
0
votes
wp_handle_upload returns a critical error response or invalid form submission
Note: Currently untested, but posting here as I write it
The PHP can go in a plugin or your themes functions.php and will give you an endpoint at yoursite.com/wp-json/demonipo/v1/profilephoto that you …
0
votes
0
answers
168
views
Social-Link block not loading html on page with custom theme
When I use the Gutenburg Editor to add Social Links to my page it does not load the html on to the page. it shows the standard wordpress commenting (as shown below) but no html below it
<!--wp:social- …
0
votes
where can i add custom script to stop header video from autoplay
If you have your own theme or a child theme then you can add this in script tags to one of your templates. I'd suggest your footer template, just after the call to <?php wp_footer(); ?>
<script>
jQuer …
0
votes
0
answers
222
views
call_user_func_array() expects parameter 1 to be a valid callback, class 'WC_Rapyd' does not...
We've installed the Woocommerce Rapyd Payments plugin and have the issue that the payment option is not loading on the front end. Query Monitor is showing the above warning message, but I haven't been …
0
votes
0
answers
81
views
How to pass value from ajax to php in no conflict mode?
I am trying to use ajax to pass value of the checklist to php in wordpress. I am using plugin to insert php on a page as a shortcode. Then inside the theme I created a js file with js/ajax code. I tes …
0
votes
1
answer
682
views
Removing element from DOM with jquery through plugin Custom Scripts for Customizer
This is my first post. I have the plugin powerpress loading an external image from an unsecure source that causes mixed elements so the page is not fully secured and I get the message "not fully secu …
0
votes
Accepted
$ is not defined
WP loads jQuery in no conflict mode, so you can either swap $() for jQuery(), or wrap it in a function, e.g.
(function($) {
// Code using `$` ...
})(jQuery);
0
votes
1
answer
911
views
WordPress filter load_textdomain_mofile not working inside a child theme's functions.php but...
Function in a plugin is behaving differently than function in the functions.php inside a child theme.
I have a custom simple plain plugin with nothing but the following code in it and it works perfec …
0
votes
1
answer
37
views
Custom post type and custom taxonomy key lenght & query performance
I'm creating new custom post types and taxonomies for my client and I wanted to prefix their keys so there is no conflict with any plugin that could be installed that would be providing it's own CPT a …
-1
votes
Accepted
JavaScript: TypeError: xyz is not a function after upgrading WordPress
According to @fuxia comment:
Solution is removing jQuery included by WordPress just before register/enqueue custom jQuery (see https://stackoverflow.com/a/27048128).
So if you include some jQuery on …
1
vote
0
answers
25
views
Page dissapears when i click save
So when i click save in a WP page the page content disappear.
While it is still in Draft mode i can preview the content ok, thus it disappears when i click the Publish button.
I have discovered that t …
0
votes
0
answers
299
views
Optimize WP site for millions of posts
I have a news portal Using WP cms, It has around 90K posts. DB size 2GB. Used Apache, ngnix,
WP Memory Limit 4096M, Time 300 Sec, Using CDN :)
I am using 2 Dedicated servers E5 2650 V4, 96GB Ram. a …
2
votes
Accepted
How register library to use jquery correct
You should use the built-in version of jQuery for compatibility reasons.
All you need to do is to enqueue it:
function theme_scripts() {
wp_enqueue_script('jquery');
}
add_action('wp_enqueue_scr …
1
vote
0
answers
40
views
followup to: Page begins with number, WordPress adds 2
question:
is there truly no workaround to wp pages (not posts) adding '-2' to numeric urls, when there's no naming conflict (ie, no conflict such as as a file or folder, of any sort, with the same nu …