WordPress.org

Ready to get started?Download WordPress

Forums

P2 Posts of 140 Characters (11 posts)

  1. jacob00
    Member
    Posted 5 years ago #

    Does anyone know how I might mod the P2 theme to limit posts to 140 characters as seen on Twitter?

    Cheers

  2. t31os
    Member
    Posted 5 years ago #

    You need to be a little clearer about what you want to do...

    Do you want to actually limit posts to 140 or just limit the content for each post which is output to the visitor?

  3. Scotm
    Member
    Posted 5 years ago #

    Sorry, I'm looking to limit posts to 140 characters (vesrus an excerpt of 140).

  4. t31os
    Member
    Posted 5 years ago #

    Are you looking for a function to use in specific places or a site wide change?

    Do you want this as an addition to the excerpt?

  5. jacob00
    Member
    Posted 5 years ago #

    I'm looking to have posts in P2 limited to 140 characters just as they are on Twitter.

  6. t31os
    Member
    Posted 5 years ago #

    Still not very clear what you mean..

    Are you wanting a post restriction, limiting posts to 140 characters? As in authors can't post a post if it has more then 140 chars...

    When you say limit you need to be clear about precisely where this limit should apply, on post creation, post viewing or both...

    If you want to limit posts, actual content of posts to 140 characters you'll proberly have to delve into core WP files. If you want to simply restrict the amount of characters shown on the page, then that's easy enough.

    Little clarification and i'll do what i can to help...

  7. noel
    Member
    Posted 5 years ago #

    You can do all of that without having to touch any core files. Just use something hooked onto an action or filter:

    http://codex.wordpress.org/Plugin_API/Action_Reference
    http://codex.wordpress.org/Plugin_API/Filter_Reference

  8. Gene53
    Member
    Posted 5 years ago #

    Personally, I think that 140 characters is too limited. IMO, the desired number of characters should be determined by the Blog owner.

  9. noel
    Member
    Posted 5 years ago #

    @gene53, I think that is what jacob00 is intending to do. P2 does *not* limit the number of characters by default.

  10. Scotm
    Member
    Posted 4 years ago #

    Anyone have some direction on this one? Looking to limit posts in P2 theme to 140 characters.

  11. jmunn
    Member
    Posted 4 years ago #

    Just to tidy this up. Answer here. http://wordpress.org/support/topic/316769?replies=13

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags