Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Sorry, im not sure what you mean

    ‘Can I have some buttons on the page, that change the search parameters?’

    Can you explain some more?

    Currently, there is no way to return the number of results of the query because ALM doesn’t store that data. I can likely add this in without much trouble.

    Plugin Author Darren Cooney

    (@dcooney)

    In the next release of the plugin I have added a variable – $alm_found_posts which can be accessed within the repeater templates.

    So with some custom coding you could pull that value out and display it as you need it.

    I think I know what shoptutor means by ‘buttons on the page that change the search parameters’. I am trying to do the same. I have a list of categories that when one of them is clicked i want to ajax in a new set of posts with the ‘category’ attribute set, replacing the existing set. When I do the shortcode in my functions.php file I get everything back except the actual posts (i get the wrappers and the UL but no LIs). I feel I’m missing a key part of this only working when the page first loads or actually being inside a page template.

    Maybe instead of my own ajax call to my own functions.php file where I’m echoing the shortcode, I could tap into the plugin’s functionality? Just can’t figure out how to piece together the alm_query_posts, alm_shortcode and .js $.get calls into something that works.

    Plugin Author Darren Cooney

    (@dcooney)

    The plugin doesn’t support ‘filtering’ or ‘updating’ of parameters.

    You would need to completely re-initiate the plugin to change the params.

    Cry. And I’m guessing by the lack of details that there is no way to destroy and reinit ‘on the fly’?

    Plugin Author Darren Cooney

    (@dcooney)

    You might be able to use ajax to destroy it and initiate again. Im never tried this but seems possible.

    Thread Starter Shoptutor

    (@shoptutor)

    yep, that’s what I meant.
    and since I now nothing about Jquery, I’ll continue to search for another plugin.

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Change parameters’ is closed to new replies.