• Resolved biffwonderland

    (@biffwonderland)


    Pods Gods…

    I’m trying to make the button in the sidebar work, but I want to get the IF statement right. Not all of our vloggers have a website, or a Facebook account, or an instagram..etc, etc.

    Currently each vlogger is listed in the Taxonomy “Media Artist” with the fields in place.

    How/where do I make the graphic buttons (now static) on the vloggers page only show what is available? I’m using a dynamic sidebar widget, so being able to create just one sidebar for all our vloggers wuld be sweet.

    Thank you so much in advance!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter biffwonderland

    (@biffwonderland)

    Using a template, this is what I have in the sidebar thus far…Sorry if it’s a moving target as I work on it.

    <a href="{@vlogger_web_address}"><img src="/wp-content/images/website.png" /></a>
    <a href="{@youtube_webaddress}"><img src="/wp-content/images/youtube.png" /></a>
    <a href="{@instagram}"><img src="/wp-content/images/instagram.png" /></a>
    <a href="{@patreon}"><img src="/wp-content/images/patreon.png" /></a>
    <a href="{@twitter}"><img src="/wp-content/images/twitter.png" /></a>
    <a href="{@facebook}"><img src="/wp-content/images/facebook.png" /></a>
    Plugin Contributor Jim True

    (@jimtrue)

    
    [if vlogger_web_address]
    <a href="{@vlogger_web_address}"><img src="/wp-content/images/website.png" /></a>
    [/if]
    

    Repeat as necessary. Check out https://docs.pods.io/videos/grow-beyond-posts-pages-introduction-pods-framework/

    Thread Starter biffwonderland

    (@biffwonderland)

    Thanks, Jim! That worked like a charm, and I didn’t even have to sit through the movie (which is great, really. It’s just that I have the attention span of flea).

    Thank you so much!
    Stick a fork in it ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘If statements with graphic elements in Sidebar’ is closed to new replies.