Sorry if this is a rehash, but I can't find the exact answer to my problem.
I'm looking to display the contents of a custom text field just under the product name on the category page grid.
I have done the following for another custom attribute in list.phtml, and this works:
<p><?php echo $_product->getAttributeText('plug_or_plant') ?></p>
But it only seems to work on attributes that are dropdown lists.
Does anybody know what changes I have to make to get it to display a text field?
TIA.
Best Answer
change the below changes on the admin attribute
Go to the Stores -> ATTRIBUTES-> Product-> search attribute you want to show like descrption
open the attribute like Description go to the Storefront Properties and set "Used in Product Listing" No To Yes
then after saving the attribute Please check the attached Image clear cache and reindex