WordPress.org

Ready to get started?Download WordPress

Forums

Hide Social Media Icons After Specific Date (2 posts)

  1. jbnla
    Member
    Posted 2 years ago #

    Hi There, I've searched high and low, and can't get this working based on others' suggestions, maybe you can help.

    I am using the Simple Facebook/Twitter connect plugins to add the "Like" and "Tweet" buttons to my news page (using standard posts). I have added posts for news up to 6 years in the past, and would like to hide the social media icons from anything later than this June, since it's unlikely people would go and click "Like" on events that happened years ago.

    Here is the function in the PHP file for the like button, I've customized it already to get the icons to show up on the page I want, but can't figure out the conditional for "display only after June 2011".

    Any help? Thanks!!!

    function get_sfc_like_button($args='') {
    	if(is_single()||is_home()){
            BLAH BLAH BLAH BLAH
    }
  2. jbnla
    Member
    Posted 2 years ago #

    no ideas???

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.