{"id":678,"date":"2011-10-03T11:06:51","date_gmt":"2011-10-03T11:06:51","guid":{"rendered":"https://www.divydovy.com/?p=678"},"modified":"2020-01-23T10:30:12","modified_gmt":"2020-01-23T10:30:12","slug":"thematic-snippet-show-full-content-enable-more-link-in-archives","status":"publish","type":"post","link":"https://www.divydovy.com/2011/10/thematic-snippet-show-full-content-enable-more-link-in-archives/","title":{"rendered":"Thematic Snippet: Show full content / enable $more link in archives"},"content":{"rendered":"<p>I can never find this incredibly useful snippet when I need it, so I&#8217;m blogging it.</p>\n<p>If you child-theme Thematic, you&#8217;ll notice that archive and search results pages only return the excerpt rather than the full content. This snippet changes that to give your archive pages the full impact:</p>\n<pre>// Make sure thematic_content is always set to full to enable the more link\r\nfunction childtheme_content($content) {\r\n\tif (is_home() || is_front_page()) {\r\n\t\t\t$content = 'full';\r\n\t\t} elseif (is_single()) {\r\n\t\t\t$content = 'full';\r\n\t\t} elseif (is_tag()) {\r\n\t\t\t$content = 'full';\r\n\t\t} elseif (is_search()) {\r\n\t\t\t$content = 'full';\r\n\t\t} elseif (is_category()) {\r\n\t\t\t$content = 'full';\r\n\t\t} elseif (is_author()) {\r\n\t\t\t$content = 'full';\r\n\t\t} elseif (is_archive()) {\r\n\t\t\t$content = 'full';\r\n\t\t}\r\n\treturn $content;\r\n}\r\nadd_filter('thematic_content', 'childtheme_content');</pre>\n<p>Hope someone else finds this useful!</p>\n","protected":false},"excerpt":{"rendered":"<p>I can never find this incredibly useful snippet when I need it, so I&#8217;m blogging it. If you child-theme Thematic, you&#8217;ll notice that archive and search results pages only return the excerpt rather than the full content. This snippet changes that to give your archive pages the full impact: // Make sure thematic_content is always set to full to enable the more link function childtheme_content($content) { if (is_home() || is_front_page()) { $content = &#8216;full&#8217;; } elseif (is_single()) { $content = &#8216;full&#8217;; } elseif (is_tag()) { $content = &#8216;full&#8217;; } elseif (is_search()) { $content = &#8216;full&#8217;; } elseif (is_category()) { $content [&hellip;]</p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","clkt_auto_upload":"0","_clkt_publish_and_upload":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wordproof_timestamp":false},"categories":[7],"tags":[268,267,83,266,140,125],"my_content_publications":[],"class_list":["post-678","type-post","status-publish","format-standard","hentry","category-web","tag-archives","tag-content","tag-php","tag-snippet","tag-thematic","tag-wordpress"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"clkt_attachments":{"featured_image":null,"inline_attachments":[],"upload_candidates":[],"max_free_size":102400,"max_allowed_size":104857600},"_clkt_upload_mode":"new_only","clkt_content_hash":"dc0815148db9d9daa8ac3d078da2d725c72669e4d5d2786f20478c4e87bcf509","customFields":{"clkt_auto_upload":"0","activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"processed_attachments":{"total_attachments":0,"uploaded_to_arweave":0,"kept_original_urls":0,"upload_summary":{"total":0,"uploaded":0,"failed":0,"too_large":0,"reused":0}}},"paymentAddress":"8_-tV4d15kVVq9Gd-Al2MAIC3LqNtJ_KgFol71TzxPw"}