Tagged Questions
0
votes
0answers
15 views
Lightbox Post Pop-up on homepage [duplicate]
I've been working on sampression lite theme and what I want to achieve is when a post' thumbnail/read more link on homepage is clicked, a modal will pop-up ( similar to pinterest and this wp theme ...
0
votes
0answers
9 views
How to utilize theme customizer live preview in this situation?
Short version: I am using the theme customizer in my theme and javascript for the live preview. I am not sure how to implement the javascript for php(as seen in code excerpt).
I am creating a theme ...
0
votes
0answers
18 views
videopress videos are not displayed when loading the content with ajax in a lightbox
I'm using videopress and I'm adding the videos into posts with the videopress shortcode, and when I visit the post I can see the videos and play them, but the problem is when loading the post with ...
0
votes
1answer
118 views
Ajax Validation for reCaptcha
Background
I have a registration form that validates with AJAX using jQuery Validation Engine. The form was created using Theme My Login and contains reCaptcha which I implemented using WP-reCAPTCHA.
...
8
votes
1answer
229 views
Does the functions.php file ever get called during an AJAX call? Debug AJAX
Trying to figure out an issue a fellow programmer is having. I was wondering if the functions.php file get called at all when you do admin side AJAX? I know that when you do an AJAX call a part of ...
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
128 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
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
515 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
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 ...
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
343 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
528 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 ...
2
votes
1answer
71 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
223 views
Ajax URLs without #!, how to prevent falling into single.php on load or reload?
I'm trying to make things properly with a single page ajax powered portfolio. I've read that there is no need of #! to make it crawlable by google. So I have clean URLs that updates with .pushState ...
-1
votes
1answer
259 views
Trigger a click on specific link based on the referrer [closed]
I'm working on a WP single page portfolio that loads post content with AJAX. I read that WP doesn't need #! URLs to make it crawlable by Googlebot. If I understand it correctly, since Googlebot won't ...
0
votes
0answers
25 views
Add static post every 5 posts [duplicate]
Possible Duplicate:
Using jQuery .after inside loop
This is a slight adaptation of a question I asked previously - Using jQuery .after inside loop.
So now I need to run this function every ...
0
votes
1answer
116 views
Using jQuery .after inside loop
I have a bit of javascript that will dynamically add a static post to a loop. The script uses the jQuery 'after' method and on a static page it works beautifully but when inside the loop I don't get ...
0
votes
2answers
486 views
url - ajax loaded but no JS
I have this url to call the taxonomy.php by pressing the button with the code beneath to show filtered posts:
http://myurl/?meta_key=post_views_count&orderby=meta_value&order=ASC
This is ...
2
votes
1answer
86 views
How to localized one js file for different actions?
I have a group of javascript functions in one js file. each function acts on a specific action and get its own ajax response. some are on different pages, some are on the same page. If I don't do the ...
4
votes
2answers
3k views
Enable Submit Comment Without Page Reload (Using Ajax)?
When user writes a comment and hits the submit button, WordPress reloads the page, before the comment is shown to the user.
Is there an Ajax-based solution that allows users to submit questions ...
0
votes
1answer
653 views
How to make wordpress URLS google friendly for ajax driven sites?
Our wordpress site utilizes the wordpress cms to serve up json data that we ingest via ajax requests and serve up with javascript. I would like to create URLs for my regular wordpress pages/posts that ...
1
vote
1answer
217 views
Adding wp_ajax to a theme outside functions.php (on specific template page)
I'm doing a function which requires the use of the wp_ajax action.
I've followed this guide to set it up with the differences of adding the requesting the object AJAX file in functions.php and also ...
0
votes
1answer
803 views
Change Query Arguments (filter) with jQuery/Ajax or PHP?
I have a pretty complex wordpress-site for travelling. There's an "archive-hotels.php", a template for the custom-post-type "Hotels". Inside the CPT is a taxonomy called "City", so we can do this: ...
-1
votes
1answer
237 views
How to add a hash tag to the menu URLs? [closed]
I currently use AJAX in my theme to load the main content. I want the menu to be highlighted on the current page.
The script I'm using for AJAX puts a "#" in the URL .. (ex: http://localhost/#/bio/)
...
3
votes
2answers
930 views
How-to implement admin Ajax inside an admin WP_List_Table?
I am new to WordPress if someone will help me I will be very appreciate.
There is parameter ajax "true" but in docs. wasn't said how to implement Ajax using WP_List_Table Class?
parent::__construct( ...
2
votes
1answer
440 views
How to use get_option() without any filter?
I'm using the newest WordPress 3.3.1 and newest qTranslate 2.5.27. I have made some an AJAX script which returns a value and message in the current language.
Here I get my first problem, I solve it ...
0
votes
1answer
410 views
Does wp_localize_script Call a Javascript Function or Simply Pass PHP Parameters to It
Easy question: I'm trying to understand wp_localize_script.
Does wp_localize_script call a javascript function or does it simply pass PHP parameters to javascript?
I want to pass php parameters to ...
0
votes
1answer
632 views
Ajax page load in wordpress the right way?
I tried something like the following but if the page I'm loading has javascript it's not running because the elements are created after page load. When the javascript is something I wrote I simply ...
1
vote
0answers
187 views
Suggestions for Developing a Flipbook Style Theme? [closed]
I'm currently working on a custom WordPress theme that will be a showcase of several different stories, "books" if you will, that contain individual chapters. I'd like to present each of the stories ...
0
votes
2answers
2k views
Properly embed javascript into WP (using function.php) - doesn't work?
It seems that my contact form's ajax javascript and the custom.js that I'm using for my drop-down navigation are interfering with each other.
The contact form's ajax fuction will only work properly ...
0
votes
1answer
2k views
How can I run AJAX on a button click event?
Update: I managed to get the AJAX working, but not in the click event. I updated the question to match this.
I'm trying some code I found on the page: 'AJAX in Plugins'.
However I can't get it to ...
1
vote
1answer
1k views
Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
I am trying to render content generated by a php file in [jQuery Colorbox][1] through AJAX in my WordPress site. The PHP resides on the same server in the same domain. It works perfect when I run it ...
2
votes
3answers
280 views
wp_localize_script $handle
Can anyone tell me what the "$handle" ( first parameter ) of wp_localize_script is normally used for. Thanks.
P.s.: I have no idea why but stackexchange is telling me this question dosen't meet ...
1
vote
1answer
534 views
AJAX Contact Form Issue
I created a contact form for my sidebar that is working perfectly in Chrome but not in IE or FF.
I've been staring at it for hours and can't find out what I did wrong.
I'm not getting any errors ...
4
votes
2answers
3k views
Infinite scroll / lazy loading with NextGen Gallery
I'm working on a project for a friend that involves a massive page with 3,000+ photos. See: http://www.thepurplepixie.com/projects/purple-pixies-people-project/
Currently, I have pagination set to 50 ...
