Harsh Butani
Harsh Butani

Reputation: 61

Changing the Wordpress Theme gives [thb_image image] shortcode instead of the image

So I am trying to change the theme of my WordPress blog. I have visual composer installed. When I try to change the theme, the featured images for the posts show up fine but the in post images are getting replaced by shortcodes like this [thb_image image="1124"][thb_gap height="20"]. What do I need to do to get the images back?

Upvotes: 1

Views: 247

Answers (1)

Xhynk
Xhynk

Reputation: 13880

I'm unfamiliar with the thb_image shortcode, but it sounds like they are registered inside your old theme, which would explain why they are no longer working when you change themes.

Dig through your old theme files and search for add_shortcode. You'll need to find the appropriate ones (thb_image and thb_gap) and copy them to your current theme's functions.php file.

Alternatively, I would wager the image="1234" is the ID of the image, and you can just find that in your media library and stick it in the page content using the visual editor.

Upvotes: 3

Related Questions