{"id":71873,"date":"2017-07-19T13:18:01","date_gmt":"2017-07-19T13:18:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/jmb-post-feeds\/"},"modified":"2017-07-19T13:18:01","modified_gmt":"2017-07-19T13:18:01","slug":"jmb-post-feeds","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/jmb-post-feeds\/","author":14135560,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"4.8.28","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"JMB Post Feeds","header_author":"James Bailey","header_description":"Generate post feeds in various formats.","assets_banners_color":"","last_updated":"2017-07-19 13:18:01","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1131,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[567,252,58369,850,748],"plugin_category":[],"plugin_contributors":[144029],"plugin_business_model":[],"class_list":["post-71873","plugin","type-plugin","status-publish","hentry","plugin_tags-csv","plugin_tags-feed","plugin_tags-post-feed","plugin_tags-rss","plugin_tags-xml","plugin_contributors-jmb272","plugin_committers-jmb272"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/jmb-post-feeds.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Create post feeds in CSV, XML, RSS, Google RSS, Text &amp; Custom formats.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Add your own custom format using the 'jmb_pf_plugin_settings' filter.<\/li>\n<li>Filter &amp; Refine search options to restrict the posts that appear in a feed.<\/li>\n<li>Choose the post types to include in the feed(s).<\/li>\n<li>Choose what formats to export a feed to.<\/li>\n<li>Set a feed to update automatically whenever a post matching the feed's criteria is updated.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to the '\/wp-content\/plugins' directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the plugin to the '\/wp-content\/plugins' directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol><\/dd>\n<dt>How do I create my own export format?<\/dt>\n<dd><p>First, register your Export Format with the plugin like so:<\/p>\n\n 'Text 2',\n        'ext'      =&gt; '-text-2.txt',\n        'callback' =&gt; 'jmb_pf_text_2_format',\n    );\n\n    return $settings;\n});\n?&gt;\n\n<p>Then create the Export Function that takes the feed data and exports it to a file, like so:<\/p>\n\n '',\n        'posts'     =&gt; array(),\n    ), $args );\n\n    if ( empty( $a['posts'] ) ) {\n        return;\n    }\n\n    $text_content = '';\n\n    foreach ( $a['posts'] as $post ) {\n        if ( ! empty( $text_content ) ) {\n            $text_content .= \"\\n\";\n        }\n\n        foreach ( $post as $data_name =&gt; $data_value ) {\n            $text_content .= sprintf( \"%s \", $data_value );\n        }\n    }\n\n    if ( ! empty( $a['file_name'] ) ) {\n        $fp = fopen( $a['file_name'], 'w' );\n        fputs( $fp, $text_content );\n        fclose( $fp );\n\n        return true;\n    }\n\n    return $text_content;\n}\n?&gt;<\/dd>\n\n<\/dl>","raw_excerpt":"Create post feeds in CSV, XML, RSS, Google RSS, Text &amp; Custom formats.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/71873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=71873"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jmb272"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=71873"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=71873"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=71873"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=71873"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=71873"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=71873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}