WordPress.org

Forums

Frontier Post
[resolved] Character count (12 posts)

  1. Imsfortune
    Member
    Posted 1 year ago #

    Is there a way to show character count like when we post the content on the backend? (using plugin)

    Thank you for helping.

    http://wordpress.org/plugins/frontier-post/

  2. finnj
    Member
    Plugin Author

    Posted 1 year ago #

    Will check

  3. pabaly
    Member
    Posted 1 year ago #

    Hello. Thanks for this plugin.

    I have a similar demand :
    - show words count on frontend, to help users
    - possibility to define min/max words of a field (title and description), to be sure to have good content
    - possibility to send picture with a custom field, to separate text content and picture content.

  4. finnj
    Member
    Plugin Author

    Posted 1 year ago #

    As for SHOW the word count - It seems like a walk in the park, but one never knows.

    I one of you are ready to test for me I would appreciate it.

    Edit the file frontier_form.php located in the forms subdirectory: ../wp-content/plugins/frontier-post/forms/

    and add the following line in line 59 (just after wp_editor call)

    printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' );

    As for define min/max words - Validations are on my to-do list, but still not sure when
    Picture in custom fields - You will be able to achieve this, once I extend the template functionality, but you will then have to do the php code yourself, as I don't plan to support custom fields in the standard frontier-post, but enable the users to do it them selves.

  5. pabaly
    Member
    Posted 1 year ago #

    Hello

    Show words count : I test it on my site and it works !

    https://dl.dropboxusercontent.com/u/42140767/2014-01-07_12h22_58.png

    Notice :
    - you have to press "Enter" on your computer's keyboard to show the count
    - the words with a "-" count for 1.

  6. finnj
    Member
    Plugin Author

    Posted 1 year ago #

    I know it is not perfect, but is it usefull ?

    In the meantime I am checking if I can include the tinymce wordcount plugin instead.

  7. pabaly
    Member
    Posted 1 year ago #

    Yes It's great.

    I appreciate it and i am ok if you need to test some dévelopment.

    Do you receive my french translation ?

  8. finnj
    Member
    Plugin Author

    Posted 1 year ago #

    Yes thanks, will include it in next release

  9. finnj
    Member
    Plugin Author

    Posted 1 year ago #

    Wordcount is implemented in version 2.0.5 using TinyMCE plugin, as the standard wp way is unpredictable.
    Now the wordcount is showing in the right side of the statusbar in the editor.

    You need to enable custom editor buttons (Frontier Post settings, under Advanced) to show the wordcount

    French translation added to version 2.0.5, thanks

  10. pabaly
    Member
    Posted 1 year ago #

    Thanks for this new version. I try to show the wordcount.

    You need to enable the custom editor buttons AND to select "Full editor".

    If you want to show "Minimal Visual", it doesn't work for me.

    Is that correct ?

  11. finnj
    Member
    Plugin Author

    Posted 1 year ago #

    Yes

  12. naldrighetti
    Member
    Posted 10 months ago #

    Word count doesn't work by default in plugin version 2.1.2. I found this to be caused by an additional slash in front of the the string for calling the word count. So in the file frontier_form.php, on line 64, at least one of the slashes should be deleted before printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' ); to make the feature functional.

    original: //printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' );

    functional: printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' );

    Just to clear this up for anyone else having issues.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Frontier Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic