{"id":169988,"date":"2023-03-02T02:20:15","date_gmt":"2023-03-02T02:20:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/truncate-text\/"},"modified":"2025-05-18T18:12:17","modified_gmt":"2025-05-18T18:12:17","slug":"truncate-text","status":"publish","type":"plugin","link":"https:\/\/ug.wordpress.org\/plugins\/truncate-text\/","author":14241285,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.3","stable_tag":"1.0.3","tested":"6.8.5","requires":"5.0","requires_php":"7.2","requires_plugins":null,"header_name":"Truncate Text","header_author":"Nate Chisley (WebPro)","header_description":"A plugin that truncates text to a specified number of characters","assets_banners_color":"434746","last_updated":"2025-05-18 18:12:17","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/natechisley.com\/donate","header_plugin_uri":"https:\/\/NateChisley.com\/wordpress-plugins\/","header_author_uri":"https:\/\/NateChisley.com","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1471,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"nchisley","date":"2025-04-17 23:41:46"},"1.0.1":{"tag":"1.0.1","author":"nchisley","date":"2025-04-17 21:44:26"},"1.0.2":{"tag":"1.0.2","author":"nchisley","date":"2025-04-17 23:42:42"},"1.0.3":{"tag":"1.0.3","author":"nchisley","date":"2025-05-18 18:12:17"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":2},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3295985,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3295985,"resolution":"256x256","location":"assets","locale":""},"icon-512x512.png":{"filename":"icon-512x512.png","revision":3295985,"resolution":"512x512","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3295985,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3295985,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2873392,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2873392,"resolution":"2","location":"assets","locale":""}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[24401,240932,218596,6983,240933],"plugin_category":[43],"plugin_contributors":[240931],"plugin_business_model":[],"class_list":["post-169988","plugin","type-plugin","status-publish","hentry","plugin_tags-content-formatting","plugin_tags-shorten-text","plugin_tags-text-truncation","plugin_tags-truncate","plugin_tags-truncate-text","plugin_category-customization","plugin_contributors-nchisley","plugin_committers-nchisley"],"banners":{"banner":"https:\/\/ps.w.org\/truncate-text\/assets\/banner-772x250.png?rev=3295985","banner_2x":"https:\/\/ps.w.org\/truncate-text\/assets\/banner-1544x500.png?rev=3295985","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/truncate-text\/assets\/icon-128x128.png?rev=3295985","icon_2x":"https:\/\/ps.w.org\/truncate-text\/assets\/icon-256x256.png?rev=3295985","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/truncate-text\/assets\/screenshot-1.png?rev=2873392","caption":""},{"src":"https:\/\/ps.w.org\/truncate-text\/assets\/screenshot-2.png?rev=2873392","caption":""}],"raw_content":"<!--section=description-->\n<p>Truncate Text lets you shorten long strings of text in posts, pages, or custom content. Ideal for trimming usernames, crypto wallet addresses, or any lengthy content, it offers flexible options to control exactly how and where the text is truncated.<\/p>\n\n<p>Check out our other awesome plugins: <a href=\"https:\/\/wordpress.org\/plugins\/admin-hero\">Admin Hero<\/a> | <a href=\"https:\/\/wordpress.org\/plugins\/admin-shift\">Admin Shift<\/a><\/p>\n\n<h3>Usage<\/h3>\n\n<ul>\n<li>Use the <code>[truncate-text]<\/code> shortcode to truncate text in your post or page content.<\/li>\n<li>Use the <code>[truncate-shortcode]<\/code> shortcode to process nested shortcodes before truncating.<\/li>\n<\/ul>\n\n<h3>Optional Attributes<\/h3>\n\n<p>These attributes work with both shortcodes:\n- <strong><code>limit<\/code><\/strong>: Set the number of characters to display (default: 6).<br \/>\n  Example: <code>[truncate-text limit=\"8\"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[\/truncate-text]<\/code> \u2192 <code>0x8755B1...1622CC44<\/code>\n- <strong><code>encoding<\/code><\/strong>: Specify the text encoding (default: UTF-8).<br \/>\n  Example: <code>[truncate-text encoding=\"ISO-8859-1\"]text[\/truncate-text]<\/code>\n- <strong><code>location<\/code><\/strong>: Choose where to truncate: \"start\", \"middle\" (default), or \"end\".<br \/>\n  Examples:<br \/>\n  - <code>[truncate-text location=\"start\"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[\/truncate-text]<\/code> \u2192 <code>...1622CC44<\/code><br \/>\n  - <code>[truncate-text location=\"middle\"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[\/truncate-text]<\/code> \u2192 <code>0x8755...22CC44<\/code><br \/>\n  - <code>[truncate-text location=\"end\"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[\/truncate-text]<\/code> \u2192 <code>0x8755...<\/code>\n- <strong><code>dots<\/code><\/strong>: Set the number of dots in the ellipsis (default: 3).<br \/>\n  Examples:<br \/>\n  - <code>[truncate-text location=\"end\" dots=\"10\"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[\/truncate-text]<\/code> \u2192 <code>0x8755..........<\/code><br \/>\n  - <code>[truncate-text location=\"middle\" dots=\"5\"]0x8755B12f034ee7b2383fCF5E849201C71622CC44[\/truncate-text]<\/code> \u2192 <code>0x8755.....22CC44<\/code><\/p>\n\n<h3>Nested Shortcode Example<\/h3>\n\n<ul>\n<li><code>[truncate-shortcode limit=\"6\" location=\"end\" dots=\"4\"][another-shortcode][\/truncate-shortcode]<\/code><br \/>\nProcesses the inner shortcode first, then truncates the result.<\/li>\n<\/ul>\n\n<h3>Support<\/h3>\n\n<p>If you have questions or issues, please reach out through our support channel at <a href=\"https:\/\/natechisley.com\">NateChisley.com<\/a>. We\u2019re happy to assist!<\/p>\n\n<h3>Contributing<\/h3>\n\n<p>We welcome contributions! Please follow our guidelines for contributing at <a href=\"https:\/\/natechisley.com\">NateChisley.com<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Log in to your WordPress site as an administrator.<\/li>\n<li>Go to the \"Plugins\" section in the WordPress dashboard.<\/li>\n<li>Click \"Add New\" and then click the \"Upload Plugin\" button.<\/li>\n<li>Choose the <code>truncate-text.zip<\/code> file from your computer and click \"Install Now.\"<\/li>\n<li>After installation is complete, click the \"Activate Plugin\" button.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Restructured directory.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added important links to the plugin page listing and settings page.<\/li>\n<li>Brand\/images update.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>New attributes added (limit, location, encoding, dots).<\/li>\n<li>Added support for nested shortcodes.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release with <code>[truncate-text]<\/code> and <code>[truncate-shortcode]<\/code> shortcodes.<\/li>\n<\/ul>","raw_excerpt":"Truncate Text lets you shorten long strings of text in posts, pages, or custom content.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/169988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=169988"}],"author":[{"embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nchisley"}],"wp:attachment":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=169988"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=169988"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=169988"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=169988"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=169988"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=169988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}