Viewing 13 replies - 1 through 13 (of 13 total)
  • Contact the author and ask?

    Thread Starter bangbang023

    (@bangbang023)

    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.

    Thread Starter bangbang023

    (@bangbang023)

    anyone?

    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.

    Post away.

    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 ??

    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?

    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 ??

    Yah, here you are:

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

    thanks =D

    daerchwing

    (@daerchwing)

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

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

    THanks.

    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)));

    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

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Customizable Post Listing Working with 2.1?’ is closed to new replies.