Ajax - The core of WordPress uses Ajax only in the administration screens. For instance, Ajax is used for instant updates when you are doing comment moderation, and when you are adding and deleting items from lists such as categories, blogroll, and posts; Ajax is also the technology behind the ...
-1
votes
1answer
94 views
Some Shortcodes Not Working [closed]
I am using the Rebirth theme from Scheetz Designs.
I'm trying to update my events calendar, as my current Ajax calendar does not look very pretty. I've tried to install both the Ajax Event Calendar ...
0
votes
1answer
29 views
Problem to insert links on some text in post
When i try to add a local link (toward my own pages) on some text in my post, the AJAX function run indefinitely and didn't find anything. I've opened my browser's console and i've saw the following ...
0
votes
1answer
54 views
Is there some jQuery conflict here?
I'm customizing a wordpress theme called Accordium, and I have decided to add infinite scroll to it using a wordpress plugin called pbd-ajax-load-posts. In the theme, when you click on a post in ...
1
vote
1answer
295 views
insert post & Upload post thumbnail from the front end using ajax
i have searched & searched for an explenation and have found some answers
that seem to be working for other people on this topics but i havent been able to get working.
This is my "form"
<div ...
0
votes
1answer
120 views
Load JavaScript from a post that's loading into Fancybox via ajax
I'm hoping this makes sense. When a user clicks on a post title I'm launching a modal overlay via fancybox, and feeding the associated post content via ajax. However I have a javascript call function ...
0
votes
1answer
31 views
Submit form to db
I am unable to get this insert to db function to work using ajax and a form. When I execute this, I receive a blank alert box on success.
HTML
<div id="rsvpContent">
<form ...
0
votes
1answer
456 views
Dynamically changing navigation links (next and previous) via AJAX
In my wordpress site, I have inside the loop of single.php , a select tag in which the options are the posts of the current category returned via a custom query.
On changing selected option, I have ...
0
votes
1answer
79 views
Caching-Plugins and Ajax-Page-Parts
I'd love to use »W3 Total Cache« for my Wordpress page. Caching the full page is really fasten up the site. But there is a lot of current community activity and most pages including some "latest ...
0
votes
2answers
104 views
What are the Best Practises When Using AJAX in Plugin Development?
I am in the middle of creating a plugin and everything works fine with the AJAX calls but one question I can't seem to find the answer to is about best practise.
I route the AJAX calls through ...
1
vote
0answers
66 views
wp_mail works with add_action('save_post', …) but not an ajax action
I have two actions. One is after saving a post, so add_action('save_post', 'on_any_post');
I have a second action triggered via AJAX, so
add_action( 'wp_ajax_nopriv_saveTaskPriority', ...
0
votes
1answer
73 views
update_user_meta updates to a wrong ID
Background Problem
The site I'm working right now uses custom front-end forms for content, terms and user editing and creation. Access to wp-admin is blocked for non administrator.
All of them uses ...
0
votes
1answer
107 views
Bringing Ajax Loading Feature on Category Pages
Following this post -- Showing all the posts in one page? -- I was able to create a tag and category page with all posts.
Example: http://blogote.com/apple/
The link contains over 200+ posts. Is ...
1
vote
1answer
55 views
AJAX Call is Only Returning 100 Results from Query
I have this AJAX call to fill a dropdown:
function get_select_companies()
{
var t_id = $('select#select-product_types').val();
if( t_id == -1 )
{
$('#ajax-loader').hide();
...
-1
votes
1answer
132 views
best way to communicate between php and jquery/javascript
I have a custom post type "pakket", in which I've put all kinds of data in the taxonomy terms. This custom post type has about 50 items, each with their own values for taxonomy terms. For example:
...
1
vote
1answer
113 views
What's the best way to implement AJAX in WordPress?
WordPress has a framework in place for handling AJAX which is well documented here: http://codex.wordpress.org/AJAX_in_Plugins
My concern with this is that every time you execute an AJAX query, (even ...
0
votes
1answer
650 views
Tab menus with horizontal and vertical tabs [closed]
Has anybody seen more examples of tab menus like the one on this page with horizontal and vertical tabs?
http://www.hmag.com
I need to create a page with tabs where the tabs at the top are the ...
0
votes
0answers
57 views
Dismiss Admin Pointer Temporarily
I have a custom meta field for a page that contains a future date. I'm wanting to make sure this is always a future date and have decided the best way to do so is by creating an admin pointer if the ...
0
votes
1answer
215 views
Load more posts with multiple queries
I've been developing a theme which uses the load more ajax plugin, everything is setup and working great with the main query.
But, once I setup a new query for popular posts, the load more posts ...
1
vote
0answers
251 views
jQuery Plugin to use Wordpress functions in AJAX request
I'm using Chained Selects jQuery Plugin to create multiple chained selection fields. I'm using the remote version of the plugin to build the related options by means of AJAX request from a separate ...
1
vote
1answer
54 views
custom walker nav issue involving ajax
I am using ajax in a theme not written by me. This ajax gets the link clicked and then slides that page into view. it works good. In order for it to do it's thing, I had to make a custom walker for ...
0
votes
1answer
155 views
Memberpress isn't cooperating with WooCommerce
I'm working on a site for a client that has a member subscriptions as well as a small store. We're using memberpress to handle subscriptions, and restricting content to certain membership types. For ...
1
vote
0answers
76 views
Post Comments with Ajax in Wordpress
I use this code to post comments with ajax on my WP blog. It works fine but I display the comment form on my homepage so the plugin only works for the first post (first comment form).
I want it to ...
0
votes
1answer
25 views
Ajax for subscibers not working
I have a very simple AJAX function that works fine when logged in as admin, but when logged in as a subscriber the call to admin-ajax.php returns a html page with the header and footer of my theme, ...
0
votes
1answer
35 views
Leverage permalinks with AJAX
I'm trying to implement some AJAX to my theme, but there are a few things I cannot get my head (or Google) around.
I have a custom post type named "Faculty" and a page displaying the featured image ...
0
votes
0answers
285 views
How to load more posts from a specific category using AJAX load more button [closed]
I have gone through all the answers but i am not able to figure out how to solve my problem.
i have loaded posts in a grid format and by default 6 of them will have to be displayed and then on click ...
0
votes
0answers
17 views
Custom .php page that contains json for dynamically loaded content [duplicate]
Possible Duplicate:
How can I use WordPress functions in my stylesheet?
For my wordpress blog, I would like to use some JS to load dynamic content into the sidebar of my cached pages. I was ...
0
votes
1answer
821 views
AJAX post into pop-up div
I want to AJAX post content into a pop-up div when I click on the post / page link. I have come up with the following code:
Relevant HTML / PHP:
<ul class="links">
<?php if (have_posts()) : ...
9
votes
3answers
587 views
Adding admin-ajax.php to the frontend. Good or bad idea?
I love admin-ajax.php. But I hate having to localize in order to point frontend scripts to it, and I wish there was an equivalent, easy-to-find file for themes. (It also just bothers me to see ...
7
votes
1answer
455 views
How to get a unique nonce for each Ajax request?
I've seen a couple of discussions about getting Wordpress to regenerate a unique nonce for subsequent Ajax requests, but for the life of me I can't actually get Wordpress to do it-- every time I ...
4
votes
1answer
184 views
Including Wordpress in RESTful API
I'm using a great little open-source product called Restler to provide a RESTful API to a Wordpress application. In order for this to work I want to be able to load the Wordpress environment within a ...
0
votes
1answer
239 views
Best way to use ajax front-end?
The question is about which way is the best / easiest way to make a theme with ajax, using admin-ajax.php or normally.
I ask because I see that complicates using admin-ajax.php for everything and use ...
1
vote
1answer
96 views
How to Create a Custom Panel and Fields in Post Page [Plugin]
I would like to write a custom plugin that adds a custom panel below the post compose panel that will have a few fields and a submit button. JS will kick-in to submit content to the database, without ...
1
vote
2answers
69 views
admin-ajax.php “ Missing argument 2” warning
I have the following code in functions.php
<script type="text/javascript">
var post_id = "1055"; // hardcoded post id for testing purposes
var type = "some_type";
var data = {action: ...
0
votes
1answer
84 views
Ajax object comes back empty
I'm writing a plugin with an ajax request and I'm getting a weird problem. It works fine the first few times but then all of a sudden, the data ends up empty or NULL.
This is the code:
/* in ...
2
votes
1answer
81 views
How to include admin-ajax when loading external javascript
I'm creating a plugin that has some external Javascript and some AJAX calls ... but I don't know the best way to make reference to the admin-ajax.php file since the path requires some input from PHP ...
0
votes
1answer
111 views
AJAX request not routing through proxy
I've built a plugin that uses AJAX to post a URL to the URL2PNG API and bring back a screenshot into WordPress via wp_remote_get. It works beautifully in my development environment. In production, ...
0
votes
1answer
220 views
problem using ajax url
I've got a js file like this:
var category = [];
var genre = [];
var type = [];
var mainContent = jQuery('#content');
var siteURL ="http://" + top.location.host.toString();
var URL = siteURL + ...
-1
votes
1answer
65 views
AJAX function needed (toggle text) [closed]
I am looking for a function that will toggle text exactly as shown by pressing the "Phone" button on this website : http://bit.ly/VKdJZV
Any help would be much appreciated.
many thanks,
Andy
0
votes
2answers
166 views
WordPress Ajax Problems
Update
I got it to fire using the following curl command:
curl -H "Accept: application/json" -X POST http://localhost/wordpress/wp-admin/admin-ajax.php -d ...
1
vote
1answer
147 views
WP_Query orderby breaks when using AJAX?
I'm running in to a bit of a problem.
I have a function called get_press(), it retrieves newest press items. It is inside of a plugin:
class EWPress {
function __construct()
{
...
0
votes
1answer
83 views
where does my function output from load-* go?
I've got a function hooked into load-edit.php that prints out print content:
add_action('load-edit.php', array($this, 'generate_bulk_print_content'));
public function generate_bulk_print_content() {
...
3
votes
1answer
203 views
get data from wp-query, outside the loop & without url change
I am working on an advanced search on wordpress based on custom taxonomies.
I've been stuck for 72h so I was hoping to have some help or thought...
Step 1 --- in the js file the query strings are ...
1
vote
2answers
693 views
How to get gallery id inserted to a post?
Is it possible to get a specific Gallery ID inserted to a post in wordpress 3.5? I want to load gallery from post using Ajax. I use shortcode [gallery] to do it. But when I use it this way:
echo ...
0
votes
2answers
72 views
Posting to loop.php file
I am trying to post to the loop.php template file and it is not going through for some reason, usually it should work but it isnt. Is there a alternative way to get this done?
This is what I have in ...
0
votes
2answers
169 views
Change post query onclick
I'm trying to build kind of a filtering system for the events displayed on my website. I've made a custom post type 'Event', with a 'City' field. On my 'calendar' template page, I'm gathering all the ...
0
votes
1answer
61 views
My AJAX API plugin isn't working
I've created a tiny AJAX plugin to count hits on my articles and bypass caching but it just isn't working and not throwing up any errors.
Can you see what I am doing wrong here?
<?php
...
0
votes
3answers
279 views
I can't access wordpress functions from an ajax php call
I've seen a few questions similar to this but I can't find a solution to the issue I have.
<?php
add_action('wp_ajax_nopriv_LogHit_callback', 'LogHit_callback');
...
0
votes
2answers
72 views
Ajax Plugin Not Echoing Response
I have created a plugin that will submit a form via ajax. Below is the php function.
add_action('wp_ajax_nopriv_audience_intel', 'audience_intel_ajax');
add_action('wp_ajax_audience_intel', ...
4
votes
2answers
214 views
Allow only new sub-pages to be created
Here is an amazing solution to restrict the creation of new parent pages, and I would want to use it, but the newly created sub-pages are saved only as drafts and this was not solved (see last ...
0
votes
1answer
136 views
need a confirmation text to appear on email submission
With help of other relevant posts here, I have put together a code which allows the users to send me a list of selected posts via e-mail and it is working fine.
Now, I would like a confirmation text ...



