- March 17, 2018 at 1:56 pm #17166
Hello. I would like to exclude certain words from appearing in my descriptions. In the example video, I would like to exclude the words Wikipedia and Discogs.
I want the other parts of the description to show, but I want to be able to exclude particular words from showing.
Example URL: http://dev.raphistory.com/nas-illmatic/
WiltonMarch 19, 2018 at 10:58 am #17171
Thank you very much for the proper details and the video description, it helps me a lot.
The only way to achieve this is by using a custom code, as there is no such feature on the back-end. The advanced title/content fields are for different purposes. Since you have added log-in details, I have constructed this custom code, and added to the public_html/dev/wp-content/themes/rap-history/functions.php file on your dev server. Now it removes the wikipedia and discogs strings from the content.
You can add more words/strings to be excluded, just change the $replace variable (line 22) accordingly. (comma separated list of strings)
For future reference, I am putting the custom code below:Best,
If you like my products, don't forget to rate them on codecanyon :)
March 19, 2018 at 11:17 am #17172
That is exactly how I wanted it to work.
Perfect. I have left a 5 Star rating/review.
You must be logged in to reply to this topic.