jQuery newbie help! WP posts do not act the same.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

jQuery newbie help! WP posts do not act the same.

goosefishplayer
This is a long shot that someone can help me, and I know basically nothing about jQuery. I am creating a website with Wordpress and I want all of the posts to act the same as the first one. The website is www.liamsonheim.com and pagination is working correctly for the first post, but is doing the opposite for the rest. The jQuery is:

<script type="text/javascript">
       
                //initialize
                s = 0;
                $("#pagination a").each(function(){
                        if($(this).text() == "Prev"){
                                previousl = $(this).attr("href");
                        }
                        if($(this).text() == "Next"){
                                nextl = $(this).attr("href");
                        }
                });
               


                $(document).ready(function(){
                        //setup posts
                        $(".postContent").each(function(){
                                $(this).find("img:eq(0)").appendTo($(this).parents(".post").find(".image"));
                        });
                });
               
                $(window).load(function(){
               

                        $("#cover").fadeOut(function(){
                                $(".post:eq(0)").find(".postContent").slideToggle();
                        });
                       
                });


Any ideas? THANK YOU! This is for my son's website.