Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter gld

    (@gld)

    In fact it’s turning up in all kinds of unexpected places whenever a post is called. How can I turn it off and only have it appear when EXPLICITLY called. This is EXCEEDINGLY annoying.

    Dear user share buttons appear in every post, in order to turn them off from some poss, go in that posts and on the right side you will see checkbox

    Thread Starter gld

    (@gld)

    Well there’s a few problems:
    1. They are showing up on the archive page. Doesn’t make sense. They should only be visible on the single page of the post
    2. what about custom post types? How do I add the options box on the sidebar? I think I need to add a value to the ‘supports’ array within the register_post_type arguments. Can you advise what it is please?

    Thread Starter gld

    (@gld)

    For clarification. On point 1 above, they show up on the archive page whenever we call the content e.g. apply_filters(‘the_content’, $content)

    It seems that the share buttons are ‘on’ be default for every post type. We have to get this turned off because it keeps showing up all over the place.

    Thread Starter gld

    (@gld)

    Here is the example for post type ‘customer’: https://visualfoundry.net/customer/
    Every entry in the archive-customer.php page shows up with the share buttons … grrrr

    Hi
    Thank you for your feedback, we will check and make updates on plugin, so it will not appear in draft posts.

    For custom types, if you need to activate it on sidebar, plugin can be used as widget.

    Thread Starter gld

    (@gld)

    Well I don’t think that’s the answer specifically. I just need to know what the hook is so that we can manage it either in or out for these posts or if we are able to see the widget in the sidebar as for normal posts, this would be even better. Can you tell me what the keyword would be so I can add it to the ‘supports’ array when calling the custom post type please?

    Plugin Author huge-it

    (@huge-it)

    Dear @gld we do not advise you to do modification in source because at first you will loos all your modifications after each update and we could not support your if you modify the software. With the next update you will receive feature to choose post type and even category where buttons should appear.
    Thanks for good advice and for using our plugins.

    Thread Starter gld

    (@gld)

    Modifying the source? of course not! This is defined when you declare a custom post type in functions.php or a custom plugin using the register_post_type() function and passing the ‘supports’ array which defines what kinds of components are passed.

    e.g. ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’ )

    This example above enables the thumbnail, editor and title features for the post. I just need to know what the handle is for your share buttons so I can also pass this to enable the share buttons to show up in the side bar.

    Thread Starter gld

    (@gld)

    I want it in the side-bar of the post when you are adding/ modeling the post content … not adding it to the site in the form of a widget.

    Plugin Author huge-it

    (@huge-it)

    So in that case why don’t you use the php shortcode that we provide ?
    If you write <?php echo do_shortcode(“[huge_it_share]”); ?> in your sidebar source it will appear there.

    Thread Starter gld

    (@gld)

    Well I don’t think that’s standard way. What hook would I use for this?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Buttons show up when applying 'the_content' filter’ is closed to new replies.