Republic Day

Rejoicing the day of pride! Celebrate Indian Republic Day with upto 20% OFF on all our addons.

Claim Offer
01Day 12Hr 16Min 32Sec
Republic Day

About "Short Description" of post and product how to hide question

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Best Multi Vendor Marketplace Plugin for WordPress Forums WCFM About "Short Description" of post and product how to hide question

Viewing 6 reply threads
  • Author
    Posts
    • #31018
      MOHO
      Participant

      I need the “Short Description” field of product, but i want to hide the “Short Description” field post.

      How could i make it?

      Thanks

      Attachments:
      You must be logged in to view attached files.
    • #31023
      WCFM Forum
      Member

      Hi,

      Please add this code for the purpose –

      add_filter( 'wcfm_article_manage_fields_content', function( $article_fields, $article_id ) {
      	if( isset( $article_fields['excerpt'] ) ) {
      		$article_fields['excerpt']['type'] = 'textarea';
      		$article_fields['excerpt']['class'] = 'wcfm_custom_hide';
      		$article_fields['excerpt']['label_class'] = 'wcfm_custom_hide';
      	}
      	return $article_fields;
      }, 50, 2 );

      Thank You

    • #31029
      MOHO
      Participant

      I didn’t know why it not work….

      Attachments:
      You must be logged in to view attached files.
    • #31033
      WCFM Forum
      Member

      Hi,

      I am not sure why custom code are not working from your functions.php!

      Can you please try this once using that snippet plugin?

      Thank You

    • #31035
      MOHO
      Participant

      I find out my function.php have some bug….

      but the same content, one work, and another not work…

      IS it format bug?

      https://www.dropbox.com/s/j9z1fbapf1xxkeh/functions%28work%29.php?dl=0
      https://www.dropbox.com/s/me2v2l8xgla4277/functions%28not%20work%29.php?dl=0

      Attachments:
      You must be logged in to view attached files.
    • #31037
      WCFM Forum
      Member

      Hi,

      “IS it format bug?” – Off course it’s not format bug as same code running from other place.

      As I assume, your functions.php has error at a particular line and codes below that line no more working.

      You just add this code at the top and I am sure it will work from there as well.

      Thank You

    • #31137
      MOHO
      Participant

      Thanks it work now.

      Please close it.

Viewing 6 reply threads
  • The topic ‘About "Short Description" of post and product how to hide question’ is closed to new replies.