Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › About "Short Description" of post and product how to hide question
- This topic has 6 replies, 2 voices, and was last updated 6 years, 2 months ago by MOHO.
- AuthorPosts
- September 7, 2018 at 7:47 am #31018
- September 7, 2018 at 7:56 am #31023WCFM ForumMember
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
- September 7, 2018 at 8:19 am #31029
- September 7, 2018 at 8:22 am #31033WCFM ForumMember
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
- September 7, 2018 at 8:49 am #31035MOHOParticipant
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=0Attachments:
You must be logged in to view attached files. - September 7, 2018 at 8:56 am #31037WCFM ForumMember
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
- September 8, 2018 at 5:26 am #31137MOHOParticipant
Thanks it work now.
Please close it.
- AuthorPosts
- The topic ‘About "Short Description" of post and product how to hide question’ is closed to new replies.