Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

How To Post WordPress Custom Post Types to Twitter via IFTTT

IFTTT works from RSS feed, simply including your post in wordpress RSS feed can do the trick…

function add_cpt_to_loop_and_feed( $query ) {
    if ( is_home() && $query->is_main_query() || is_feed() )        
    $query->set( 'post_type', array( 'post', 'download' ) );    
    return $query;
    }

Related Posts:

  1. Include images from pages in wp search.php results in default wp search
  2. List events by month
  3. How to append element after thumbnail
  4. GravityForm: Populate Dropdown with custom post type [closed]
  5. Can’t get order_by meta_value_num to work properly
  6. If post has custom field then display css-class
  7. Replace text in post from cvs
  8. Make a custom_post translatable
  9. Pagination hitting 404 page on /page/4
  10. Filter content in shortcode
  11. Validate Custom Post Type fields
  12. Accessing a protected property of a post
  13. Accessing download link from the loop with WP Download Manager Pro
  14. Set a template on a custom post in the plugin
  15. Filter Custom Post Type Posts by Taxonomy
  16. Include images from pages in wp search.php results in default wp search
  17. How to display all custom fields associated with a post type – IN THE ADMIN AREA?
  18. WP_Query return highest number only
  19. Show custom taxonomy not in submenu
  20. Loop carousel slider in wordpress
  21. How to Fix WordPress 500 Internal server error due to custom post type
  22. How to hide home title on pages and posts?
  23. Display children and grandchildren of a custom post type
  24. Best practice for adding posts in bulk
  25. wordpress custom post type remove duplicate menu item
  26. Using WPAlchemy metabox values in another metabox
  27. is_page_template not working as expected
  28. List terms from Custom Taxonomy
  29. Hide Meta Boxes for Non-Admins
  30. How to get images from EDD post?
  31. WP_Query search posts by custom post type and custom taxonomy
  32. Issue to get wp_get_attachment_image with cmb2
  33. How to have the right design for a custom post type without accessing themes
  34. Dynamic Custom Post Type Plugin
  35. Order WordPress Custom Taxonomy Pages & Pagination Not Working
  36. I am having a problem with form updating/editing WordPress post on the frontend
  37. How to filter out post type meta?
  38. Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
  39. How to make in WordPress admin panel sortable column for the custom field, that count the number of page impressions?
  40. Display custom field of specific post where post title matches variable
  41. Conditional to modify query results
  42. XML-RPC and Custom Post Types
  43. Loop through posts of a custom-post-type (event) and create .ics (iCal) file?
  44. Custom Post Type | Fatal Error on register_post_type()
  45. Output custom post shortcode. Help spot the error.
  46. How to count custom post types with conditional operators
  47. Set object terms not working on plugin activation
  48. How to add the post ID (or any other post data) to a Contact Form 7 mail?
  49. WP_Query is printing out only one post when posts_per_page is set to multiple
  50. WP Query to displaying date and posts for that date?
  51. Return array of categories to php function for current post
  52. Link users to a custom post type
  53. Create a random unique 6 digit number as custom field for custom post type
  54. How to output wordpress custom tags separated by comma?
  55. how to add extra meta box or textarea into custom post types
  56. Loading all files within a directory
  57. Blog page showing same content as homepage
  58. Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
  59. Using several custom fields as custom post title
  60. Custom Post Type without an archive page
  61. Get rewrite slug of custom post type in template
  62. Show Different Header on a Specific Post ID
  63. “add_post_type_support” with Custom Post Type & ACF
  64. Get Post Primary Category
  65. Weird problem happening with custom taxonmy when creating/updating posts
  66. A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
  67. Shortcode insertion in tab
  68. Admin notice not displaying
  69. How to quickly reorder posts in the admin panel that will persist for the wp-api
  70. Create custom post type on successful woocommerce order [closed]
  71. Add CPT as subpage under custom page
  72. Adding custom tables to WordPress
  73. WooCommerce product search titles only
  74. check if post title in a custom post type exists in page
  75. Taxonomy Archive: Display only one post per term from separate custom taxonomy
  76. Very Slow Page – How to Optimize # of Queries?
  77. Dynamic page outside WordPress
  78. How to hack YARPP plugin to find related posts for custom post type?
  79. Using wordpress template tags within an array
  80. How to display Custom Post Type Post based on Tag with Shortcode Parameter?
  81. Getting the URL of the parent page
  82. Custom query to filter posts that have current post as a taxonomy [closed]
  83. Custom post type permalink returns bad url
  84. Return the thumbnail meta data for getter and setter
  85. Accessing post’s meta data based on user’s click of a post
  86. How to display selected taxonomies by their parent
  87. Show listings from Impress Listing plugin in random order using taxonomy and terms
  88. Custom Field Order by Last Name and First Name
  89. Pagination for custom php code
  90. get_posts of Custom Post Type AND Custom Taxonomy
  91. What’s the difference between same wp functions get_posts(); functions in different form?
  92. Update menu when saving settings
  93. Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
  94. One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
  95. Custom Post Type Loop throws 500 error when used in widget
  96. how to check if custom post type column already exists?
  97. Get posts from a custom post type by child categories of a parent category
  98. custom post type not showing in menu
  99. Custom posts don’t work
  100. Received nothing after executing AJAX post function
Categories custom-post-types Tags custom-post-types, php, plugins, social-sharing, xml-rpc
When does wp-cron fire?
Allow only 1 quantity of particular product in cart WooCommerce

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress