Looks like you’ve mis-named the function. It is the_tweetbutton()
, rather than tweetbutton()
.
Also, you should always wrap Plugin-added function calls in if (function_exists())
conditional wrappers.
Putting that together, this:
<div id="tweet-button">
<?php tweetbutton(); ?>
</div>
Becomes this:
<div id="tweet-button">
<?php if ( function_exists( 'the_tweetbutton' ) ) the_tweetbutton(); ?>
</div>
Related Posts:
- Importing Tweets with certain hashtags into WordPress
- publish_post hook isn’t working for scheduled posts
- Top 3 posts in last week ordered by Facebook and Twitter share counts
- Adding a custom line of text to php code
- Twitter-like follow system, is there any plugin?
- Runng Cron Job for Plugin With No CronTab Access
- Updating the Drag-To-Share eXtended share URLs?
- Is there a social members only login plugin for WordPress? [closed]
- Why Does the WordPress Twitter Tools Plugin give a 500 Internal Server Error?
- How do I get the Twitter Tools widget to display my tweets?
- Facebook and Twitter share buttons not working [closed]
- How to retrieve hashtaged tweets from a list of users and post to WordPress
- How can I make the Twitter Tools plugin hyperlink every link?
- How to correct Error: message on website Twitter Feed
- Twitter List Tweets and Delicious Links as Posts
- Internet Explorer seperating lists differently in Twitter Widget Pro than all other browsers [closed]
- Publishing tweets from wordpress [closed]
- WordPress Plugin for Maps of specific Tweets? [closed]
- Serious social interaction [closed]
- Publish post facebook page & twitter automatically [closed]
- Where can I sell WordPress themes and plugins? [closed]
- Delete tables from database when deleting plugin
- Change success message in plugin Theme my login
- Filter out results from REST API
- Extension preview disapeared since WP 4.5.2
- Using custom code, how can I fetch data from the WordPress plugin repo?
- Find out if request is for custom post type archive before query runs
- A way to sort WordPress themes? [closed]
- Adding “ ” before the last word in multiple defined areas with a plugin
- problem with nextgen plugin
- Display price range on woocommerce product variations
- How to install and activate a plugin via an external PHP script
- How to remove xmlns on language_attributes()?
- unregistered user can write in blog page – possible? how to?
- Can’t update/install plugins or WordPress
- The safest way to automate WordPress backups
- Guidelines / restrictions about advertising /donate begging unside wordpress plugins or themes
- Media is not attached after import
- WordPress automatically removes line break
- Modifying Author Link to add Author Meta in URL
- How to disable a plugin for certain page?
- Submit form after reCaptcha is solved
- WP Query. Is there a maximum size?
- wp_editor content in plugin options page
- How to Create a Custom Slug for Tags and Categories with a prefix or suffix?
- Executing jQuery in a plugin
- modify plugin to support RTL
- Bulk update wordpress posts
- Flipping Book PHP Code? Any experience?
- “W3 Total Cache” with “What Would Seth Godin Do” (and widgets?!)? [closed]
- cforms plugin function “my_cforms_logic” (for writing custom logic), is running 5 times
- Best Sitemap Plugin for 1M+ pages [closed]
- How to have a gallery in which each image’s caption is a whole “post”?
- WordPress Stock Update Programatically
- I Setup Rate My Post Plugin On Site But Now Got Issues In Google Webmasters
- Custom API plugin to execute 3rd party API to retrieve data
- Getting a ressource ID, from a WC_Order_Item_Product/Order
- How to link a form to a product [closed]
- get_term_meta returns false in widget
- Overwrite add_image_size defined by theme
- same user role or copy the user role to be same as the other role
- Approve users posts before publish
- How to use add_action for multiple instances of the same class
- Use jQuery Datepicker code from plugin
- How to include wp-postviews plugin directly in the theme
- Using BuddyPress > ‘Register page’ [closed]
- I want wordpress to change my title automatically to a certain area in Belgium
- Getting URL GET parameter with Code snippets and storing it in database?
- admin-ajax.php 500 error when new users try to register
- WordPress REST API: Query media files attached to a custom post type
- Font Awesome icon are not loading in wordpress 5.5.1
- Javascript not getting injected into page
- How to update all in-site redirect URLs to destination URLs at once
- wordpress loop giving me content
- How to pass multiple custom fields as shortcode’s parameters
- Submenu Page under Settings in Admin Panel
- All Post WordPress Page Error
- Which membership plugin enables users to enter html links in blogs and on their profile page?
- ACF / Using external resources to display images
- Why some plugins are including wp-includes/plugin.php file?
- How to create a custom page for unrelated database?
- 500 Internal Server Error on a WordPress site
- how to enable tinymce custom buttons in meta box?
- Allow user to input shortcode into wordpress widget
- Plugin on all site except primary one
- WordPress function to add text
- Directory structure for plugin changes
- How can I pass value to function in add_menu_page?
- Have video content populate page from upload sub-directory?
- Integrating planning tools in wordpress
- TheCartPress plugin – Make every item in store unique
- How to remove links generated by SEO-smart-links?
- Making WordPress-built website mobile friendly
- Add to cart option to have multiple of 6
- WordPress Role Capability Restriction
- Can anyone see a syntax error in this? [closed]
- How to dispaly post informations (such as titles) in an admin plugin menu page?
- How can i include a plugin in my theme folder?
- WordPress error Fatal error: Uncaught TypeError: Argument 3 passed to Automattic :get_setting_for_feature() [closed]
- Hidden Elementor sections slow down website. How to fix this? [closed]