WordPress.org

Ready to get started?Download WordPress

Forums

GetSocial
Compatible with Custom Post Types? (6 posts)

  1. musicmann
    Member
    Posted 1 year ago #

    I've gotten this to work on my homepage, but it's not showing up for custom post types. Is there anything that I can do to get it to show up for custom post types?

    http://wordpress.org/extend/plugins/getsocial/

  2. nemoprofeta
    Member
    Posted 1 year ago #

    I have this problem too. Is there at least a manual function that I can put in my functions.php file?

  3. Ralf Skirr
    Member
    Posted 1 year ago #

    In a previous post the creator pointed to this tweet:
    https://twitter.com/ganee/status/228050590675107840

    Unfortunately there's not enought information for me (non-programmer) to use it. The function mentioned is part of getsocial.php, but I have no idea how to actually change the function.

    Maybe someone can help. :-)

  4. ianwp
    Member
    Posted 1 year ago #

    Quick solution to use it on every post type.
    Open getsocial.php and change line 177
    from

    if (is_single() && ( $post_type == 'post' ) && get_option('getsocial_show_on_posts') == "true" && $hide_box_value != "true" ) return true;

    to

    if (is_single() /*&& ( $post_type == 'post' )*/ && get_option('getsocial_show_on_posts') == "true" && $hide_box_value != "true" ) return true;

    You could always make an array of allowed post types and use that on that line, but for a quick solution it works. Let me know if you need help setting it up only for some post types.

  5. Teersa
    Member
    Posted 1 year ago #

    How do you open getsocial.php?

    I'm a beginner. Somewhat familiar with my site and files.

  6. Teersa
    Member
    Posted 1 year ago #

    Found it.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.