WordPress.org

Ready to get started?Download WordPress

Forums

recent posts (10 posts)

  1. brianbonner
    Member
    Posted 9 years ago #

    ok I got the plugin. I put the c2c_get_recent_posts line in the right side bar. it works. But I hate having the date attached it word wraps the link to the message. Any help?

  2. One of the benefits of the Customizable Post Listings plugin is that you can customize what gets displayed and how it gets displayed. Have you tried defining a custom format for the output? (vheck out the later examples at the plugin's homepage). Or explain exactly what you'd like to have show up.

  3. Jinsan
    Member
    Posted 9 years ago #

    You can remove the date element - just remove the reference to date in the code wherever you wanted it to be displayed. This is for me one of the best plugins simply because of its flexibility in configuration. Excellent plugin

  4. brianbonner
    Member
    Posted 9 years ago #

    I cannot figure out what code is on use in the plug in, nor what I am allowed to change.

  5. brianbonner
    Member
    Posted 9 years ago #

    Ok I think I am calling to this code?
    function c2c_get_recent_posts ($num_posts = 5,
    $format = "

  6. %post_date%: %post_URL%
  7. ",
    $categories = '', // space separated list of category IDs -- leave empty to get all
    $orderby = 'date',
    $order = 'DESC', // either 'ASC' (ascending) or 'DESC' (descending)
    $offset = 0, // number of posts to skip
    $date_format = 'm/d/Y', // Date format, php-style, if different from blog's date-format setting
    $authors = '', // space separated list of author IDs -- leave empty to get all
    $include_passworded_posts = false)
    {

    What can I change. when I delete the %date% I get an error. I wish I had the authors email. Sorry folks I am bran new at this code.

  • What exactly do you want to appear in your recent posts listing? Just the post titles linked to the post's permalink page? If so, try this:

    <?php c2c_get_recent_posts(5, "<li>%post_URL%</li>"); ?>

  • brianbonner
    Member
    Posted 9 years ago #

    That causes the url to be displayed. I need a link to the permalink with the post title. I really messed up this page

  • Did you use capital URL in %post_URL%? That is different than %post_url%. Case matters.

  • mcmike
    Member
    Posted 9 years ago #

    nice screw up of the forum *grin* :)

  • mcmike
    Member
    Posted 9 years ago #

    Oww besides you can try my version :P But that is not as highly adepted as C2C's version since I started out plugins like a week ago :P

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.