WordPress.org

Ready to get started?Download WordPress

Forums

Quicksand Post Filter jQuery Plugin
Is there a way to show the excerpt? (14 posts)

  1. Deyson
    Member
    Posted 1 year ago #

    Hello this plug in looks great.

    I was wondering if there is a way to only show excerpts?

    Thank you.

    http://wordpress.org/extend/plugins/quicksand-jquery-post-filter/

  2. developingtheweb
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Yes there is are you comfortable modifying php code? Additionally if you modify the code it will stop you from being able to update the plugin in future.

    Between line 69-70 in quicksand.php located in the quicksand-jquery-post-filter folder in between the tag replace everything with <?php the_excerpt(); ?>

  3. Deyson
    Member
    Posted 1 year ago #

    Thank you :)

  4. developingtheweb
    Member
    Plugin Author

    Posted 1 year ago #

    sorry that was meant to say inbetween the <a> tag

  5. Deyson
    Member
    Posted 1 year ago #

    Thank you! I am getting close.

    Now I am stuck and so close. :)

    I have a hover effect on my thumbnails that uses javascript to play the movies in HTML5 using the <video> tag. When the page first loads with your quicksand script the hovers work great, but once I click on a category I loose the effect. Do you know what could be causing this or maybe point me to how I can fix it.

    Thank you very much! :)

  6. developingtheweb
    Member
    Plugin Author

    Posted 1 year ago #

    Hi sorry for the slow replies.

    I am not sure, have your tried using firebug on Firefox to see if there are any javascript errors or conflicts after the filter options is clicked.

  7. Deyson
    Member
    Posted 1 year ago #

    Hello. I am not seeing any conflicts in firefox.

    I am wondering if the javascript I am using to play the videos is causing the conflict.

    Maybe there is a way to add a reload the excerpts when other categories are pressed to reset it.
    I will have to learn javascript some more to learn how to implement it into your plugin.

  8. rajesh.rajan
    Member
    Posted 11 months ago #

    Hello there! any clues on how to show the excerpt in the li ?
    I have tried the_excerpt but with no success
    I have been editing the quicksand_function.php in

    Thanks in advance.

  9. developingtheweb
    Member
    Plugin Author

    Posted 11 months ago #

    Hello,

    See if there is actually anything being returned in the excerpt.

    See http://codex.wordpress.org/Function_Reference/get_the_excerpt

    Attach get_the_excerpt to a variable and echo the variable. IF nothing is returned then something is not right with the posts excerpts.

  10. rajesh.rajan
    Member
    Posted 11 months ago #

    Here is what i have tried.

    Pastebin

    The idea being item1 shows the thumbnail and title while on mouse over item2 shows the title and excerpt . I seem to be getting the title and more link but no excerpt.

    Shud've posted the pastebin earlier! Duh! me.

  11. developingtheweb
    Member
    Plugin Author

    Posted 11 months ago #

    Ah yes I think I remember someone running into something similar actually.

    the_excerpt doesnt work outside of standard WordPress loops so you need to create a custom function and then call that instead.

    http://wordpress.stackexchange.com/questions/26729/get-excerpt-using-get-the-excerpt-outside-a-loop

    that might help.

  12. sweena
    Member
    Posted 10 months ago #

    this is what I did, and it worked for me

    <p> <?php $post = get_post($item->ID); echo $post->post_excerpt; ?> </p>

    just before the </li>

  13. dragan.filipovic
    Member
    Posted 9 months ago #

    Just to confirm that adding
    <?php $post = get_post($item->ID); echo $post->post_excerpt; ?>
    works perfect.
    Thanx sweena

  14. Ivan Fuentes Hagar
    Member
    Posted 7 months ago #

    sweena, you rock.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.