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 ...

learn more… | top users | synonyms

1
vote
1answer
122 views

Showing Author Information and Latest Post by author in lightbox when clicked on the name of the author

I am showing details of all the authors including the avator, Name, Description in my blog. When I click on the OPTIONS TO CONNECT link a lightbox will open and I need to show those details(which I ...
3
votes
2answers
46 views

Is it safe to assume that a nonce may be validated more than once?

From what I have gathered, once a nonce is generated it is valid for reuse for the next 48 hours. Is it safe to code with this in mind? I'm writing a plugin that does a bit of toing and froing with ...
0
votes
0answers
42 views

Ajax call to minimal custom class with WP admin check

I'm creating a plugin that will submit requests via AJAX. As there will potentially be a lot of people submitting requests at once I call the file directly rather than through the WP ajax (reference). ...
1
vote
1answer
30 views

wp_verify_nonce doesn't return true on server when it matches the nonce

$.ajax({ type: "POST", dataType: "text", url: ajaxurl, data: { action: "more_news", nonce: nonce, offset: offset }, success : function(data, ...
1
vote
0answers
40 views

Attach time/date stamp on add_post_meta

we have an image viewer on our website where admins can tag images thought ajax (new feature on Wordpress 3.0). We are tagging just fine, but we need to filter when they were tagged. We are using ...
0
votes
0answers
33 views

How can I update options with javascript?

I'm writing a plugin with an admin screen. I have a set of radio buttons to select the tabs on the plugin's admin page. I also have a 'last_tab' option that allows the administrator to pick up where ...
0
votes
0answers
130 views

how to get the variable passing through the ajax url in wordpress query

i want to get the variables passing through the ajax url in wordpress query_post(). here is my javasrcipt <script type="text/javascript"> jQuery(document).ready(function($){ ...
0
votes
1answer
179 views

Ajax loop in sidebar to load post titles/categories

I have a sidebar that displays the 20 latest posts, what I'd really like to do is Ajaxify that loop so there's a load more button at the bottom. The problem is, it's a fairly complicated loop and ...
0
votes
1answer
24 views

Caching for logged in user and Ajax update

I would want to serve the homepage with a cached version of the page for both logged in and new users. And then to use Ajax to update the content appropriately, for example if the user had already ...
0
votes
0answers
16 views

Worpress json api plugin - calling from jQuery [duplicate]

I am using JSON API Plugin for wordpress. It generates a json file from my wordpress content at http://grmmph.com/?json=1. It seems to work fine if from the link above, however when I am trying to ...
0
votes
1answer
27 views

Using Nonces for AJAX that only retrieves data

Does it make sense to use a nonce on an AJAX action that only returns data and doesn't alter data on the server side? I understand they are important if you are saving data or changing something on ...
-6
votes
3answers
230 views

Jquery Slider for profile template

I want to show the posts under a category in my page.The first 5 posts should be shown when the page loads and When the user clicks the next button/link next 5 posts should be shown. Currently I show ...
0
votes
0answers
33 views

rewrite rules, replicate page for #! vars

my site has only one page and tons of news in small boxes, i load all of this news from a JSON with jquery. Im trying to make the site google friendly so i've checked in google "AJAX content crawled" ...
0
votes
1answer
133 views

How to add Ajax to the default widget calendar to support next/previous months loading?

I want to customize or replace the default calendar, similar to the default widget, but with Ajax next and previous months loading. Ideally I would like to be able to do that (red dots are dates ...
0
votes
1answer
74 views

Can't seem to get wp_localize_script to work

This is my code: wp_enqueue_script('ms_ajax_localized'); wp_localize_script( 'ms_ajax_localized', 'MS_Ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nextNonce' => ...
1
vote
0answers
29 views

wordpress file upload with ajax when site is ajaxyfi

I am getting problem in upload any file. My word press site is using Ajax Page Loader Plugin.So page is not refreshing when the form is submitting.. I am not getting any value in PHP code in ...
1
vote
2answers
235 views

Call the content of a page in AJAX in Wordpress

Out of Wordpress, I've made a simple index page wich call the content of 10 other pages thanks to AJAX. Now I need to put this into Wordpress and the AJAX calls don't work at all. I have created the ...
0
votes
1answer
63 views

Two different archive pages showing the same content

I'm trying to use Query Multiple Taxonomies with Ajax. It works with Ajax and it works without it. But unfortunately not at the same time. Basically I need an Archive page to show only the posts of ...
0
votes
1answer
526 views

Execute PHP code in Javascript onclick

When a user clicks on the table row, I want to: save a value in the user profile go to a page I am within this loop: <?php $query = new WP_Query(array('post_type' => 'aanvraag', ...
0
votes
1answer
426 views

Get selected value with PHP and jQuery

I have form that i'm using to update user profile from front end and i have country select. <form method="post" id="adduser" action="<?php the_permalink(); ?>"> <select id="te" ...
0
votes
0answers
16 views

Custom fields function in Ajax-called file

When I call a file with Ajax, I can't access anything from any post as I get this message : Fatal error: Call to undefined function get_post_meta(). I tried to add require_once("wp-config.php"); at ...
4
votes
1answer
156 views

Call to undefined function add_action()

I created a Theme Options page where the user can edit some of the theme settings. Now I'm trying to save this options asynchronously but it seems I have some problems integrating the handler file ...
1
vote
1answer
176 views

jQuery Ajax() doesn't work when the page is accessed as a WordPress template page

In one file (test_ajax.php) I have a which on change loads another page (registration_form_race_type.php) with a short message via jQuery Ajax(). It works fine when "test_ajax.php" is accessed via its ...
0
votes
0answers
225 views

wordpress jquery mobile theme load more posts problem?

I have made new wordpress theme based on jquery mobile using this course - easy-development-with-jquery-mobile and i want to add load more button which load the posts via ajax i tried tried to use ...
0
votes
0answers
195 views

How to use ajax pagination on loop

I need help guys. How can I implement ajax pagination using the below php code for my custom post type "app" <div id="portfolio-wrap" class="clearfix"> <?php //get post type ==> ...
0
votes
0answers
37 views

I am trying to send ajax collected data to the current users database

I am using WooCommerce and added an additional field "location_gps" to collect the location (lat,long) added the ajax call to collect the data. Now I'm stuck getting the data into the current users ...
-1
votes
1answer
87 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
28 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
48 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
226 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
105 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
26 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
354 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
69 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
80 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
56 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
65 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
84 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
53 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
121 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
78 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
534 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
54 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
189 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
233 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
51 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
139 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
58 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
24 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
31 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 ...

1 2 3 4 5 11