Support » Fixing WordPress » Display or hide featured image if a field is empty or not

  • I want a code that it will show the original photo of the featured image when when the “x” field is empty, and if it isn’t then it will not shot the featured image.

    At another point of the single post I want to show the “x” when it not empty, and it’s empty then it will show nothing.

    Also, the “x” field must support the display of shortcodes (A gallery of nextgen with shortcode), embed tweet and Instagram photos.

    I have created this code that I show on the place of the featured image the “x” field when it has a record inside but I have problems with tit and it doesn’t tweet and Instagram photos. It also has conflicts with the shortcodes.

    Can someone help me with those 2 codes so I can make them work right?

  • The topic ‘Display or hide featured image if a field is empty or not’ is closed to new replies.