0
votes
0answers
76 views

Get Page content to displayin Bootstrap Modal

Ok I'm a relative novice here, and after looking around I still haven't found the answer to my problem. I'm basically trying to link a Bootstrap Modal to some text in a footer (widget), the content of ...
0
votes
0answers
49 views

Infinite scroll wont work on mobile browsers. Works on non mobile systems

I implemented infinite scroll on my WordPress blog using the following script: <script type="text/javascript"> var abc=66;//what is abc doing? $(window).scroll(function () { ...
0
votes
0answers
87 views

Sorting Posts Based On Meta Value Using AJAX

I am trying to short posts on frontpage/archive pages using AJAX. The AJAX call seems okay but nothing displaying. Here is the JS: jQuery( document ).ready(function() { jQuery( ".sbyp" ...
0
votes
1answer
58 views

Fetching posts from wordpress function in ajax

I'm trying to fetch posts in ajax. Everything is working but It is showing only one post. Please check my code and tell me if something is wrong function ag_get_posts() { global $post; $args ...
0
votes
0answers
94 views

JQuery is only applying to first post in loop

I have a JQuery script that creates 'arrows' that allow for my textbox to be scrollable, the problem is JQuery is only apply it to the first post (you can see none of the other posts have the arrows). ...
-1
votes
1answer
206 views

How to toggle a div element between two images when click two submit buttons in a wordpress loop?

How to toggle a div element between two images in a wordpress loop when click two submit buttons simultaneously? I have one div, 1st image should select when i click on the first submit button and ...
0
votes
3answers
853 views

How can I loop into two different DIVS without repeating the DIVs

I am having a little trouble trying to figure out how I can accomplish this: I have a container with two colums in it, a right and a left column. Each column will have 3 posts with a short excerpt ...
0
votes
1answer
99 views

What is the best way to get the first few post from WordPress in different divs using a loop?

I got the first post using the loop but I can't get the second post. I would like every post to be in a different div but the same style as the first post. To do this, I would probably need to ...
0
votes
1answer
120 views

Displaying information from custom field on custom post type

I have videos set up as a custom post type and music, commercial, promo set up as categories within this post type: I have a function that displays a custom meta box on the videos post type pages in ...
0
votes
1answer
393 views

Use Click Image to Play Youtube Video in a Wordpress Loop

Here is my code on Playing Youtube Video when an image is clicked.. The HTML <div id="my-video" style="display:none;"> <div class="responsive-video"> <iframe ...
0
votes
3answers
72 views

Code to check amount of blog posts and add css

Is there any sort of jquery I can use to check if there is only one blog post on the page, then to add custom CSS? And if there is more than one, add different CSS? <div class="main-blog top ...
0
votes
1answer
96 views

Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin - Adding to “Thoughts” Theme

How do I enable infinite scroll (either with the infinite-scroll plugin OR the built in infinite scroll jetpack) on the "Thoughts" Wordpress theme? I'm a total noob at editing this stuff so if you ...
-6
votes
3answers
425 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
1answer
192 views

Pass WP post content to a jQuery plugin (Fancybox)

I'm building a portfolio WordPress. It only displays image thumbnails, with a video element that call the fancybox. In the <a> tags, the attributes have the information for the fancybox to load ...
2
votes
2answers
742 views

The correct way to call posts with ajax

I'm trying to write an image gallery plugin with jQuery. I'm using jQuerys $.post AJAX method to send and receive info from the relevant post page. Basically I'll be looping through the attachments ...
1
vote
2answers
566 views

Load comments per post on click with AJAX

I'm working on a theme that uses a slider to display blog posts. Beneath the slider is a pagination that displays like a timeline, with a date instead of a page number, calling the corresponding blog ...
0
votes
1answer
34 views

Loops running into each other

I have 3 loops on one page, each pulling a different CPT into a portfolio like layout. Live: http://iassc.baltimoredrew.com/providers/ Gist: https://gist.github.com/3503334 However the tags for the ...
0
votes
1answer
178 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
1answer
1k views

Using the loop to set locations for all posts on a single google map

Firstly, hi all! I am new to worpress stackexchange. I have been trying to build my own google map to show the location of all my posts. But I don't seem to be able to get the markers to display on ...
2
votes
2answers
646 views

Modify this loop to fit my jQuery slider (slides)

I´m trying to make a slider which takes thumbnails from a certain custom post type and displays for of them for each "slide". I get the slider and thumbnails to work like they should, but I´m unsure ...
0
votes
1answer
683 views

how to json_encode(); the Loop content so that the encoded array is [“0”:content, “1”:content]

<?php $dVC=array(); query_posts('meta_key=featuredt&posts_per_page=5'); if (have_posts()) : while (have_posts()) : the_post(); $dVC []= $post->post_content;?> <div ...
0
votes
1answer
958 views

Using jQuery toggle() in WordPress post to show/hide Tweet button?

What is the appropriate way to use jQuery toggle() function in a WordPress post to show/hide a Twitter "Tweet" button? The problem I am encountering is when I put the code in my content-post.php, the ...
-1
votes
1answer
351 views

jQuery cycle and WordPress: Captions, buttons, oh my

I'm attempting to use jQuery cycle to create a rotator on my blog (which will be used going forward on all other blogs) like the following: http://www.pbs.org/teachers <div id="feature-well"> ...
0
votes
1answer
321 views

Ajax request with jQuery without WP_ajax

I try to made a website in full ajax (a html5 website). I use jquery and innerShiv (for ie). For exemple I want to load all the content of the "section" tag of a page. When I use that script, it ...
7
votes
1answer
3k views

How can I fetch loop of post titles via AJAX?

I have a list of the most recent post titles in sidebar.php. Here is an example of how that code looks: <?php $args = array('posts_per_page' => 20); ?> <?php $sidebar = new ...