Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 archive view, an accordian animation plays by standard. The problem is, the plugin fails to render the default accordion style of posts in the archive when you click on Load More Posts [farthest bottom, in Persian] and shows it like when a post is clicked, leaving it with a fixed open accordian.

  • screenshot #1: h.dropcanvas.com/bf49k/ajax_load.jpg
  • screenshot #2: h.dropcanvas.com/5aoza/ajax_load2.jpg

On my site, it seems that it only shows class="pk_entry", rather than the entire class="pk_post", but I might be mistaken. It seems to me that there should be a jQuery or PHP conflict, but you know I'm no professional. You can see my site at

etrewp.ir/ezdevaj.ma

share|improve this question

1 Answer 1

If I click on the large button on the bottom of your page (the one in your first screenshot), then your page is called with the parameter ?paged=2. If I call your page directly with this parameter, I got the following JS error TypeError: $ is not a function

From the source of your page:

<!-- Clickable Nav Script-->
    <script>
    $(function () { ... }
    </script>

Replace it with this:

<!-- Clickable Nav Script-->
    <script>
    jQuery(function ($) { ... }
    </script>
share|improve this answer
    
That actually corrected the navigation on the left beneath the logo, but not my original problem. Anyway, thank you. (By the way, I have no background now under that navigation menu you just helped me with. You know there was one with the CSS fallback before. How can I do that?) –  EdelAli Mar 10 '13 at 18:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.