{"id":9406,"date":"2010-06-10T15:49:46","date_gmt":"2010-06-10T15:49:46","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/meta-extensions\/"},"modified":"2010-07-11T14:05:06","modified_gmt":"2010-07-11T14:05:06","slug":"meta-extensions","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/meta-extensions\/","author":444416,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.3","stable_tag":"trunk","tested":"3.0.5","requires":"2.0.2","requires_php":"","requires_plugins":"","header_name":"Meta Extension","header_author":"Scott E. Royalty","header_description":"","assets_banners_color":"","last_updated":"2010-07-11 14:05:06","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.premiumdigitalservices.net\/blog","header_plugin_uri":"http:\/\/www.premiumdigitalservices.net","header_author_uri":"http:\/\/www.premiumdigitalservices.net","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3515,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<ol>\n<li>Nothing special required.<\/li>\n<\/ol>"},"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":{"1":"None"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2010,2235,683,9051,166],"plugin_category":[],"plugin_contributors":[92540],"plugin_business_model":[],"class_list":["post-9406","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-fields","plugin_tags-fields","plugin_tags-meta","plugin_tags-meta-fields","plugin_tags-posts","plugin_contributors-sroyalty","plugin_committers-sroyalty"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/meta-extensions.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin takes a simple concept of giving you fields to enter information that use the meta tags built into \nWordpress and expands on it. Modifying conf.txt in the plugin directory will allow you to enter custom fields to \nthe Posts pages to add textfields, textarea, dropdown selections, checkboxes, and radio selections.<\/p>\n\n<p>On top of all this simplicity, it also integrates several popular Wordpress plugins. With gallery selection for \nNextGen Gallery you can select a gallery to save the id to a meta field for your post to pull in your theme. Support \nfor WordTube video selection is also added. WP-Download Manager is also supported in this initial release to get ids \nfor downloads as well.<\/p>\n\n<p>Now while that may seem enough to make this a popular plugin, there is more. Meta Extensions allows you mark the \nfields to auto add tags based on field title or content (explained in the readme). It also allows you to set up \ncheckboxes to add a post to\/remove from a category automatically as wanted. All from the single conf.txt file included \nwith the plugin.<\/p>\n\n<p>One of the latest features is the ability to place conf.txt in your current theme's directory. By placing conf.txt in\nthe theme directories this allows you to run the plugin with multiple themes on your site and have custom conf.txt per\ntheme to only show the specific fields needed in that theme. If the file is not in the theme directory, it pulls from\nthe default conf.txt in the plugin's directory.<\/p>\n\n<p>Related Links:<\/p>\n\n<ul>\n<li><a href=\"http:\/\/www.premiumdigitalservices.net\/blog\/\" title=\"Meta Extensions Plugin for WordPress\">Plugin Homepage<\/a><\/li>\n<\/ul>\n\n<h3>Arbitrary section<\/h3>\n\n<h4>CONFIGURATION<\/h4>\n\n<p>Filed\/Element Types:\n    textfield - HTML Form Textfield\n    textarea  - HTML Form Textarea\n    checkbox  - HTML Form Checkbox\n    radio     - HTML Form Radio selections\n    select    - HTML Form Select box\n    gallery   - HTML Form Select box to choose a NextGen Gallery\n    video     - HTML Form Select box to choose a Wordtube Video\n    download  - HTML Form Select box to choose a Wordpress Download Manager file<\/p>\n\n<p>To specify the custom fields, edit the file conf.txt<\/p>\n\n<p>Each entry begins with the subject inside square brackets. The second \nline specifies its type. The third line, which only applies to type\n\"radio\" and \"select,\" enumerates the available options. Each option\nhas to be separated by a hash mark (#). Each entry for standard HTML\nform entities you can also include a default which tells it which to\nmark as selected or checked. You can also include the tag option which\nwill tell the plugin to add the selection as a post tag automatically.\nTags are explained further down. Checkbox also has unique entries called\ncategory_id and category_name. These are filled based on existing categories\nin your Wordpress site. This can be used to auto add\/remove the post to the\nentered category id (and it's matching name for error checks) when used.<\/p>\n\n<p>Ex.<\/p>\n\n<p>[Plan]\ntype = textfield\nsubtitle = Enter the generic name of your plan here.<\/p>\n\n<p>[Favorite Post]\ntype = checkbox\ncategory_id = 4\ncategory_name = Project Plans<\/p>\n\n<p>[Miles Walked]\ntype = radio\nvalue = 0-9#10-19#20+\ndefault = 0-9<\/p>\n\n<p>[Temper Level]\ntype = select\nvalue = High#Medium#Low<\/p>\n\n<p>[Hidden Thought]\ntype = textarea\nrows = 4\ncols = 40<\/p>\n\n<p>[Picture Gallery]\ntype = gallery\ntag = 0<\/p>\n\n<p>[The Video]\ntype = video\ntag = 0<\/p>\n\n<p>[Attachment]\ntype = download\ntag = 0<\/p>\n\n<p>Tags can be very useful. Below is how each special type generates the\ntag for it.<\/p>\n\n<p>Tag Design:\n    textfield - Title of the entry when filled\n    textarea  - Title of the entry when filled\n    checkbox  - Title of the entry when checked\n    radio     - The name of the selection\n    select    - The name of the selection\n    gallery   - Not handled\n    video     - Not handled<\/p>\n\n<h4>Useage<\/h4>\n\n<p>Once you build your conf.txt file, you are ready to start making posts\nusing the custom fields. In order to call these fields you can either\nuse the built in get methods for post meta, or you can use the ones that\nI have added to the metaext class to keep your code clean and know what\nis what. Below is the current list of functions you can use in your theme\nto call the meta information easily.<\/p>\n\n<p>Meta Extensions Class:\n    metaext::get_single_metaext($meta_name, $limit)\n        Description: Creates a post object containing all the Posts with the meta_name passed being set in them.\n            $meta_name: the name in brackets for the field you want to pull the list of posts using this field.\n            $limit: how many of these posts to pull. Defaults to 5 if nothing is passed.\n    metaext::get_multi_metaext($meta_names, $limit)\n        Description: Creates a post object containing all the Posts the all the meta_names passed (meta_names is an array).\n            $meta_names: the names in brackets in an array for the fields you want to pull the list of posts using this field.\n            $limit: how many of these posts to pull. Defaults to 5 if nothing is passed.\n    metaext:: get_value_metaext($the_ID, $name)\n        Description: Gets the value for the passed name from the post id passed.\n            $the_ID: the post ID you are wanting to pull the custom field's value from.\n            $name: The field name of the entry you want to pull the value for. The name is what is in [] and is case sensitive.<\/p>\n\n<p>Meta Extensions Wordpress Download Manager Class:\n    metaext_wpdm::get_metaext_downloadlink($id)\n        Description: Returns the download link for WPDM ID passed.\n            $id: The download ID (can use metaext::get_value_metaext() to get the ID) you want the link for.\n    metaext_wpdm::show_metaext_downloadlink($id)\n        Description: Echos the download link for WPDM ID passed.\n            $id: The download ID (can use metaext::get_value_metaext() to get the ID) you want the link for.<\/p>\n\n<p>Meta Extensions NextGen Gallery Class:\n    metaext_ngg::get_metaext_firstpic($galleryid)\n        Description: Pulls the first image's src link for the gallery id passed to it.\n            $galleryid: The gallery ID that you want to pull the first pic's image url for.\n    metaext_ngg::show_metaext_firstpic($galleryid, $class = '')\n        Description: Echos the first image's src link for the gallery id passed to it using the optional class name passed.\n            $galleryid: The gallery ID that you want to pull the first pic's image url for.\n            $class: The name of the class you want to use, optional.\n    metaext_ngg::show_metaext_gallery($galleryid)\n        Description: Echos the Gallery ID passed, the same as using the NGG show gallery shortcode.\n            $galleryid: The gallery ID that you want to show the gallery for.<\/p>\n\n<p>Meta Extensions WordTube Class:\n    metaext_wt::get_metaext_wtvideo($videoid)\n        Description: Returns the Video code to show on a page for the video id passed.\n            $videoid: The video id to get the code for.\n    metaext_wt::show_metaext_wtvideo($videoid)\n        Description: Echos the Video code to show on a page for the video id passed.\n            $videoid: The video id to get the code for.<\/p>\n\n<h4>Code Examples<\/h4>\n\n<pre><code>&lt;div id=\"meta-ext-test\"&gt;\n    &lt;?php if ( metaext::get_value_metaext(get_the_ID(), 'the_gallery') ) : ?&gt;\n        &lt;h2&gt;Test for Galleries using Meta Extensions with NextGen Gallery&lt;\/h2&gt;\n        &lt;?php metaext_ngg::show_metaext_gallery(metaext::get_value_metaext(get_the_ID(), 'the_gallery')) ?&gt;\n    &lt;?php endif; ?&gt;\n    &lt;br \/&gt;&lt;br \/&gt;\n    &lt;?php if ( metaext::get_value_metaext(get_the_ID(), 'the_video') ) : ?&gt;\n        &lt;h2&gt;Test for Videos using Meta Extensions with WordTube&lt;\/h2&gt;\n        &lt;?php metaext_wt::show_metaext_wtvideo(metaext::get_value_metaext(get_the_ID(), 'the_video')) ?&gt;\n    &lt;?php endif; ?&gt;\n    &lt;br \/&gt;&lt;br \/&gt;\n    &lt;?php if ( metaext::get_value_metaext(get_the_ID(), 'the_download') ) : ?&gt;\n        &lt;h2&gt;Test for Downloads using Meta Extensions with WP Download Manager&lt;\/h2&gt;\n        &lt;?php metaext_wpdm::show_metaext_downloadlink(metaext::get_value_metaext(get_the_ID(), 'the_download')) ?&gt;\n    &lt;?php endif; ?&gt;\n&lt;\/div&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Extract and upload the contents of the zip file to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Edit the conf.txt file in the plugin directory for the fields you want to set up.<\/li>\n<li>Under Posts is where the new fields will populate.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>Q: Is there any shortcode useage yet?\nA: Not yet, possible in future versions.<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial public release.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Upgraded to conf.txt instead of conf.txt for editing via the Plugin Editor.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Fixed linebreaks with subtitles in several types.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Changed html layout to match admin panel boxes.<\/li>\n<li>Now uses current theme name in the title box.<\/li>\n<li>Checks for conf.txt in current theme's directory first. If exists, uses that one. If not, defaults to one in plugin directory.<\/li>\n<\/ul>","raw_excerpt":"Allows adding custom form fields to posts, storing them in custom meta fields. Integrates NGG, WT, and WP-DM.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/9406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=9406"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sroyalty"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=9406"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=9406"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=9406"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=9406"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=9406"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=9406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}