Unanswered Questions
2,245 questions with no answers
0
votes
0
answers
660
views
How to use shortcodes on a widget sidebar when doing an ajax call?
I'm trying to use a shortcode from Promotion Slider Plugin inside a widget when doing an ajax call. As said here, I could achieve it doing:
add_action( 'init', function() {
...
0
votes
0
answers
267
views
Working on fixing wp-front-end-editor, encountering undefined index
Scribu's Frond-End Editor plugin is brilliant, but throws some Strict errors in debug mode.
Since I'm using the plugin on a project, I figured I'd fix the errors. (You can see my changes from the ...
0
votes
0
answers
659
views
How to use AJAX to check if user is still logged-in?
I am working with Wordpress 3.8
I have an app that I would like to use AJAX to check with Wordpress to determine if their idle time has expired.
In my functions.php, I have the following hook that ...
0
votes
0
answers
133
views
Ajax Not Working If The Handler is Located Outside Plugin Submenu Page Function
I am using wordpress ajax to trigger a submission. I located the submission code in the submenu page, because of it is have conflict with the function in plugin main page. The problem here is, I ...
0
votes
0
answers
41
views
Can anyone tell me why I can't edit a plugin when it is installed without having to re-install?
I am using a shortcode plugin as a framework for the short codes I want to add that go with my theme. I decided to just include the plugin in a repo for the user to dl so I am not building theme right ...
0
votes
0
answers
50
views
Break a Wordpress function to run in patches and re-continue
I am new to PHP and coding and I am really not a coder but I try to modify and use existing codes.
I have a function which I am trying to run when needed for all users within Wordpress to do an ...
0
votes
0
answers
3k
views
Update user meta using Ajax on front end?
I would like to update some user meta information from the front end of a WordPress page when the user clicks on a button. I am attempting to pass along a string of data, and then updating the field ...
0
votes
0
answers
196
views
Ajax Request not coming back to class
I'm struggling with an ajax request. It's executed but not returning back to my class.
My PHP:
...
public function __construct() {
add_action( 'admin_print_styles', ...
0
votes
0
answers
330
views
Remove dashboard access but allow ajax file upload
I want to restrict dashboard access for users with a custom user role.
The code works fine, and i can perform custom ajax requests successfully, howeverim not able to upload a file using the wp.media ...
0
votes
0
answers
39
views
WP supersize not displaying when different languages flags are selected
I've got a very strange problem with this website. The background slides appear when your English flag but when its switched to The Spanish flag or Other flag the backgrounds don't appear. Link to ...
0
votes
0
answers
3k
views
fail to load /wp-admin/admin-ajax.php locally
I have the same problem as here, in that all ajax functionality has suddenly stopped working.
In the browser dev tools it gives the error as failed to load resource for wp-admin/admin-ajax.php
With ...
0
votes
0
answers
77
views
Trying to customize wordpress drop down categories
I'm having some problems on how to display the categories that i want in wp_dropdown_categories.
Here is an image of the drop down -
Here is the code for the dropdown -
HTML:
<?php ...
0
votes
0
answers
171
views
Unable to show messages using 'admin_notices'
The plugin I am working on has a table in the admin area with a single entry corresponding to single row. The admin has an option to perform certain actions on the table contents one of them being ...
0
votes
0
answers
806
views
Warning: preg_replace(): Compilation failed: unknown option bit(s) set at offset -1
I recently upgraded my dedicated server to Apache 2.4.6, MySQL 5.5.32, and PHP 5.4.21. Now on my website I get this error:
Warning: preg_replace(): Compilation failed: unknown option bit(s) set at ...
0
votes
0
answers
3k
views
Load more posts with Ajax and masonry
I'm using this method to load more posts with Ajax:
http://www.problogdesign.com/wordpress/load-next-wordpress-posts-with-ajax/
I'm also using masonry for the posts layout.
Masonry works fine for ...