{"id":166087,"date":"2022-12-01T02:03:01","date_gmt":"2022-12-01T02:03:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/tematres-wp\/"},"modified":"2022-12-01T02:02:25","modified_gmt":"2022-12-01T02:02:25","slug":"tematres-wp-integration","status":"publish","type":"plugin","link":"https:\/\/gl.wordpress.org\/plugins\/tematres-wp-integration\/","author":20455335,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"6.1.10","requires":"6.0","requires_php":"7.4","requires_plugins":"","header_name":"Tematres WP Integration","header_author":"Rebeca Moura e Lucas Rodrigues","header_description":"WordPress and Tematres Integration","assets_banners_color":"","last_updated":"2022-12-01 02:02:25","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/becahp\/tematres-wp-integration","header_author_uri":"https:\/\/github.com\/becahp","rating":0,"author_block_rating":0,"active_installs":0,"downloads":639,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2826812,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2826812,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Settings page.","2":"Tematres Tag metabox at the post or custom post type edit page."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[22220,60424],"plugin_category":[],"plugin_contributors":[216004,216005],"plugin_business_model":[],"class_list":["post-166087","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-tags","plugin_tags-tematres","plugin_contributors-becahp","plugin_contributors-lucasrodri","plugin_committers-becahp"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/tematres-wp-integration.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/tematres-wp-integration\/assets\/screenshot-1.png?rev=2826812","caption":"Settings page."},{"src":"https:\/\/ps.w.org\/tematres-wp-integration\/assets\/screenshot-2.png?rev=2826812","caption":"Tematres Tag metabox at the post or custom post type edit page."}],"raw_content":"<!--section=description-->\n<p>When informing a Tematres API URL, WP recognizes the terms registered in Tematres as Tags available to publish to posts.<\/p>\n\n<h4>Usage<\/h4>\n\n<p>Install and activate the plugin. Go to the \"Tematres WP Integration\" menu in the panel and configure the requirements:\n- Tematres API URL\n- Tag Name\n- Post where the tags will be applied<\/p>\n\n<h4>FrontEnd Observation<\/h4>\n\n<p>To return the tags in the frontend of a post which uses, for example, the <code>get_the_tag_list<\/code> function (as the Twenty Twenty One Theme) of WordPress, it is necessary to manually change the theme's template files, to not call this function, since it exclusively calls tags of type <code>post_tag<\/code>, which are standard in WP. So we created the functions <code>has_tag_thematres_wp<\/code> and <code>tmwpi_get_the_tag_list<\/code> that look for the tag created by the plugin.<\/p>\n\n<p>Usage example in Twenty Twenty One theme:<\/p>\n\n<pre><code>if ( has_category() || has_tag() || has_tag_tematres_wp() ) {\n    ...\n    if ( function_exists( 'tmwpi_get_the_tag_list' ) ) {\n        $tags_list = tmwpi_get_the_tag_list( '', __( ' ', 'twentytwentyone' ) );\n    } else {\n        $tags_list = get_the_tag_list( '', __( ' ', 'twentytwentyone' ) );\n    }\n    ...\n}\n<\/code><\/pre>\n\n<h4>GitHub<\/h4>\n\n<p>Please reach out to make pull requests or issues on the <a href=\"https:\/\/github.com\/becahp\/tematres-wp-integration\">Tematres WP Integration GitHub repository<\/a>.<\/p>","raw_excerpt":"Plugin that implements the integration of a Tematres with WordPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/166087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=166087"}],"author":[{"embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/becahp"}],"wp:attachment":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=166087"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=166087"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=166087"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=166087"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=166087"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=166087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}