Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jhoell

    (@jhoell)

    The {thumb} parameter also does not wrap the link to the post around the thumbnail image.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    Thanks for the report. I’ll have a look at this as soon as possible.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Custom post types with underscores cannot be used with this widget. The underscores get stripped out on save.

    You’re right, underscores and dashes as well are being stripped out by the widget. I won’t be able to push an update till next week at least though, so for the time being please follow these instructions:

    1. Go to Plugins > Editor and pick Recently from the dropdown.
    2. Find (around line 453):
      // Post type
      $instance['args']['post_type'] = ( '' == $new_instance['post_type'] )
        ? array('post')
        : explode(",", preg_replace( '|[^a-z0-9,]|', '', $new_instance['post_type'] ));

      … and change it to:

      // Post type
      $instance['args']['post_type'] = ( '' == $new_instance['post_type'] )
        ? array('post')
        : explode(",", preg_replace( '|[^a-z0-9,_-]|', '', $new_instance['post_type'] ));

    3. Hit the Update file button to save changes.

    That should do the trick.

    Thread Starter jhoell

    (@jhoell)

    Perfect, thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post Type problem’ is closed to new replies.