2,730 reputation
11128
bio website rrike.sh
location Mauritius
age 29
visits member for 2 years, 11 months
seen 2 days ago

Apr
17
revised how to stop wordpress admin menu from scrolling with page
Cleaned up question.
Mar
25
comment Plugin init hook fires repeatedly
Your dashboard regularly makes Ajax requests, that's triggering the init most probably. Have a look at the network tab.
Mar
13
awarded  Autobiographer
Feb
23
comment Why won't my custom widget stay in the sidebar after a reload?
Using the class name is a valid, but old way to have a constructor.
Feb
16
reviewed Approve Random post category URL
Feb
16
reviewed Approve Pagination not working in custom post page
Feb
15
comment WP_query is not returning the expected result
Also, unrelated to your question, You should hook wp_enqueue_script() and wp_localize_script() as shown in the Codex codex.wordpress.org/Function_Reference/wp_enqueue_script
Feb
15
comment WP_query is not returning the expected result
Have you checked the network tab(or your console.log()) for what is being returned from the Ajax call? You should be using get_the_title() instead of the_title() by the way. the_title() echoes the title, and this might be breaking your response.
Feb
5
comment Make a WP Query search match exactly the search term
possible duplicate of Wordpress search exact match
Jan
27
comment Turn Autocomplete on
That's exactly what the plugin is meant to do...
Jan
26
comment Turn Autocomplete on
I tried and it works. If you don't see the autocomplete="off", it's working.
Jan
25
comment Wordpress Plugin development Call to undefined function jQuery()
@pSyToR The document ready should go into the JS file, not the PHP.
Jan
25
comment Wordpress Plugin development Call to undefined function jQuery()
Note that it should be js/my-script.js instead of /js/my-script.js because the value returned by plugins_dir_url() already has a trailing slash.
Jan
25
comment Wordpress Plugin development Call to undefined function jQuery()
Yes, the question itself is confusing.
Jan
25
comment Turn Autocomplete on
By default, all fields "have" autocomplete="on". Removing autocomplete="off" is the same as having autocomplete="on"
Jan
24
comment Wordpress Plugin development Call to undefined function jQuery()
@pSyToR are you adding any other JS files besides jQuery? You can add jQuery as a dependency, meaning WordPress will automatically include jQuery when it includes your JS file. Sometimes you can have such errors if you're including jQuery twice! Look at your source code.
Jan
24
comment Wordpress Plugin development Call to undefined function jQuery()
@bonger why wouldn't you have? It's better to put things in a JS file for caching.
Jan
24
comment Wordpress Plugin development Call to undefined function jQuery()
Why not not add jQuery as a dependency?
Jan
24
comment Turn Autocomplete on
Did you activate the plugin? Is the JavaScript part being injected in your page?
Jan
22
answered Turn Autocomplete on