Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

DanVilla on "Featured Listings Random posts"

$
0
0

Hellow, im having an issue here in this website http://www.psicologiavenezuela.net/

As you can see im using a plugin called "Features Listing" in the column that has a header wich says "Profesionales Destacados".

I have managed to modify this plugin so everytime the page refreshes the posts in the featured listing are random but, now i want to use jquery to refresh this posts every 10 seconds and i cant find where to start. I know that first i have to register my script so wordpress can add it in my head section.

With jquery i can load a php file using ajax, this file is gonna populate my column with the posts from the database but, in order to do so, i need to select the div where the post are gonna be displayed.

the js code that i have to use to get this done is this: `<script type="text/javascript">
$(document).ready(function() {
$.ajaxSetup({ cache: false });
setInterval(function() {
$('#divToRefresh').load('/path/to/your/php/file/');
}, 3000);
});</script>`

I dont know how to manage this, is easy to explain it but in code i dont have idea where to use it, because i cant find the file where this featured listing pluging is being called to render the posts. Any suggestions or ideas on how to do this?


Viewing all articles
Browse latest Browse all 26892

Trending Articles