WordPress.org

Ready to get started?Download WordPress

Forums

Customizable Post Listing Working with 2.1? (14 posts)

  1. bangbang023
    Member
    Posted 7 years ago #

    http://svn.wp-plugins.org/customizable-post-listings/

    Is it yet working with 2.1? On http://codex.wordpress.org/Plugins/Plugin_Compatibility/2.1#Plugins_that_don.27t_work.2C_or_are_Iffy._.28Wasn.27t_quite_working_properly..29 this page, it's listed as not working and I would like to know if the SVN version was fixed to work correctly or not. Thank you for your help. I can not update without this plugin.

  2. Samuel B
    moderator
    Posted 7 years ago #

    Contact the author and ask?

  3. bangbang023
    Member
    Posted 7 years ago #

    Or I was hoping to see if someone knew off the top of their head. I'm glad you decided to post and be so helpful. I was just asking.

  4. bangbang023
    Member
    Posted 7 years ago #

    anyone?

  5. ohshhitscarl
    Member
    Posted 7 years ago #

    I actually just modified the plug-in itself using the built-in plug-in editor. It was pretty simple after reading a post someone made about the new "post_type" database entry utilized in 2.1.

    I don't know if it's allowed or not but if you'd like I can post which lines needed to be modified and what needs to be added.

  6. Samuel B
    moderator
    Posted 7 years ago #

    Post away.

  7. ohshhitscarl
    Member
    Posted 7 years ago #

    The following should fix the problem with the function "c2c_get_recent_posts" that it displays Pages as posts. I haven't really noticed any other problems besides this. And checking the code, there should be no other problems.

    Line 61 should read:

    $sql .= "WHERE $tableposts.post_date <= '$now' AND ( $tableposts.post_status = 'publish' ";

    Replace Line 61 with:

    $sql .= "WHERE $tableposts.post_date <= '$now' AND $tableposts.post_type = 'post' AND ( $tableposts.post_status = 'publish' ";

    Update and it should be working :)

  8. Romik84
    Member
    Posted 7 years ago #

    I use the plugin too and I found one problem on WP 2.1. It doesn't show excerpt of the post. Did anyone notice it too?

  9. ohshhitscarl
    Member
    Posted 7 years ago #

    Romik84, if you give me the function name you're trying to use, I'd be more than happy to analyze and correct the code :)

  10. Romik84
    Member
    Posted 7 years ago #

    Yah, here you are:

    <?php c2c_get_recent_posts(3,"
    <li>%post_date% %post_URL% %post_excerpt_short%</li>
    ",1);?>

    thanks =D

  11. daerchwing
    Member
    Posted 7 years ago #

    I have the same problem as Romik84 - the function %post_excerpt_short% is broken.

  12. puppy18
    Member
    Posted 7 years ago #

    anyone found the solution to this problem yet?
    please advise.

    THanks.

  13. eldamar
    Member
    Posted 7 years ago #

    Hi i made excerpt work with a little work around i guess... dont have much php skills but it works for me annyway :)

    I use version 1.5 of Customizable Post Listing, so the lines are a bit different than 1.1... and i dont know/remember were i found 1.5, with a little googling you might find it.

    Here is how i did annyway...

    Starting at line 292:
    $new = apply_filters(’the_excerpt’, get_the_excerpt());
    break;
    case ‘%post_excerpt_short%’:
    $new = ltrim(strip_tags(apply_filters(’the_excerpt’, get_the_excerpt())));

    Change to:
    $new = apply_filters(’the_excerpt’, (empty($post->post_excerpt)) ? $post->post_content : $post->post_excerpt);
    break;
    case ‘%post_excerpt_short%’:
    $new = ltrim(strip_tags(apply_filters(’the_excerpt’, (empty($post->post_excerpt)) ? $post->post_content : $post->post_excerpt)));

  14. daerchwing
    Member
    Posted 7 years ago #

    Thanks for looking into it - I'll check out your code once I find the time.

    And I found 1.5 at wp-plugins.org

Topic Closed

This topic has been closed to new replies.

About this Topic