ھي پلگ ان WordPress جي جديد 3 وڏين رليزز سان آزمايو نه ويو آھي. اهو ٿي سگهي ٿو وڌيڪ برقرار يا سپورٽ نه ٿي سگهي ۽ ٿي سگهي ٿو مطابقت جا مسئلا جڏهن ورڈپریس جي وڌيڪ تازي ورزن سان استعمال ڪيو وڃي.

Custom Comment Form Title

وضاحت

The problem with the default comment form in WordPress is that the title “Leave A Reply” doesn’t really engage readers or encourage them to start a discussion or join the conversation. With the Custom Comment Form Title plugin, you can quickly change the default title to something more engaging, then set a custom comment form title on a post-by-post basis to really engage your readers. Ask a compelling question, make a bold statement, or leave an empty threat. Say whatever you want!

A note about Framework and Theme Compatibility:

Some frameworks and themes replace the comment_form_defaults function with a new, unique function. This plugin has been tested with, and is known to work with, the following frameworks:

  • Genesis
  • Thematic

If your framework isn’t listed above, that doesn’t mean the plugin won’t work for you. Give it a try and find out. If it doesn’t work, head over to the forum and leave some information about your framework or theme. With your help, I can work on updating the plugin to work with a wider variety of frameworks and themes.

A note about other comment system plugins:

Some comment systems replace the WordPress Comment Form all together. Special consideration must be taken to hook this plugin’s custom titles back into the page before the new comment system. This plugin has been designed to work with the following comment systems:

  • Disqus

If the commment system you use isn’t listed above, head over to the forum and leave some information about what you are using. With your help, I can work on updating the plugin to work with a wider variety of comment systems.

تصوير

  • The plugin settings page with a new default comment form title.
  • The new default comment form title in action.
  • The custom comment form title box on the Edit Post screen.
  • The new custom comment form title in action.
  • The custom comment form title above the Disqus comment system

انسٽاليشن

  1. Download ‘custom-comment-form-title.zip’
  2. Extract the ZIP file and upload the ‘custom-comment-form-title” folder to the ‘/wp-content/plugins/’ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Set the default comment form title in the ‘Custom Comment Form Title’ admin screen in the ‘Settings’ menu
  5. Set post-specific comment form titles in the ‘Create/Edit Post’ page

FAQ

My custom titles aren’t displaying.

Some frameworks overwrite the comment_form_defaults function with a new, unique function. Check the plugin settings page for a list of frameworks this plugin has been developed to work with.

What if my framework isn’t listed?

Try the plugin and see if it works. Your framework may not replace the default comment_form_defaults function. If the plugin doesn’t work, leave a comment in the forum and, with your help, I can work on updating the plugin to work with a wider variety of frameworks and themes.

I’m not using the comment_form() function, can I modify my comments.php file so this plugin will work with my theme?

Yes! Somewhere in your comments.php file you should see a line of code that looks similar to this:

<?php comment_form_title( __('Leave a Reply'), __('Leave a Reply for %s') ); ?>

If you replace that line of code with the follow snippet you should be able to use Custom Comment Form Titles with your website:

<?php
$post_id = get_the_ID();
$post_comment_title = get_post_meta( $post_id, 'ccft_post_comment_title', true );
if( !empty( $post_comment_title ) )
    $ccft_comment_title = sanitize_text_field( $post_comment_title );
else {
    $ccft_admin_options = get_option( 'custom_comment_form_title' );
    $ccft_comment_title = esc_attr( $ccft_admin_options['default_title'] );
}
if( !empty( $ccft_comment_title ) )
    echo '<h3 id="reply-title" class="comment-reply-title">' . $ccft_comment_title . '</h3>';
else {
    echo '<h3 id="reply-title" class="comment-reply-title">';
    comment_form_title( __('Leave a Reply'), __('Leave a Reply for %s') );
    echo '</h3>';
}
?>

جائزا

3 سيپٽمبر 2016 1 reply
I’m using the SEOS White Premium Theme. This pugin does not appear to work with this theme. My configured it but the comment forms were invisible on my designated pages.
جمع: سڀ 6 تبصرا پڙهو

تعاون ڪندڙ & ڊولپرز

“Custom Comment Form Title” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.

تعاون ڪندڙ

ترجمو ڪريو “Custom Comment Form Title” توهان جي ٻولي ۾.

ڊولپمينٽ ۾ دلچسپي؟

ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.

لاگ تبدیل ڪريو

2.2

  • Added support for Custom Post Types.

2.1

  • Updated priority on comment_form_defaults filter.
  • Removed check for Genesis framework (no longer needed with aforementioned priority change).

2.0.1

  • Added Spanish language file.

2.0

  • Added compatability with the Disqus Comment System.
  • Revised code to be more efficient.
  • Created .po file for localization.

1.1

  • Added custom Comment Form Title functionality to Pages (previously only available for Posts).
  • Added additional FAQs

1.01

  • Updated text in the readme.txt file to include a note about other comment system plugins.
  • No functionality changes.

1.0

  • Plugin release