{"id":10541,"date":"2011-09-13T08:00:00","date_gmt":"2011-09-13T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/ajax-read-more\/"},"modified":"2011-12-08T00:35:00","modified_gmt":"2011-12-08T00:35:00","slug":"ajax-read-more","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/ajax-read-more\/","title":{"rendered":"AJAX Read More"},"content":{"rendered":"<p>When your blog is loaded, all links of this class <strong>.more-link<\/strong> (standard wordpress css class for \u201cRead more\u2026\u201d<br \/>\nlinks) are modified to no longer send the user to that post\u2019s<br \/>\nsingle page display when clicked. Instead, the WordPress database is queried for that specific post, and all content<br \/>\nafter the <strong><!\u2013more\u2013><\/strong> tag (i.e. only what you need) is returned.<br \/>\nThe new content is then immediately displayed to the user with light animation (You can disable animation in plugin options),<br \/>\ninline with the opening content.<\/p>\n<ul>\n<li>AJAX-read-more uses the jQuery framework already included with WordPress installations.<\/li>\n<li>This plugin used <strong>GET<\/strong> ajax action (not POST, like other plugins), wordpress <strong>\u201ctemplate_redirect\u201d<\/strong> action.<\/li>\n<li>It\u2019s compatible with cache plugins (like Hyper Cache Extended).<\/li>\n<li>AJAX-read-more: design of progress indicator and other behaviors \u2013 by CSS (example \u2013 in css\/all.css)<\/li>\n<li>cache-safe script and css url<\/li>\n<\/ul>\n<p>Check plugin options on options page.<\/p>\n<p>Thanks for debugging to den@10-13.ru.<\/p>\n<p><strong>Theme requirements:<\/strong><\/p>\n<ul>\n<li>Your <strong>theme must generate correct DOM structure<\/strong>:<br \/>\n(div id=\u201d#content\u201d)<br \/>\n\u2026<br \/>\n(div class=\u201dpost\u201d)<br \/>\n    \u2026<br \/>\n(\/div)<br \/>\n(\/div)<\/li>\n<li>Theme must support <strong>footer<\/strong> (wp_footer). If not, you can change corresponding option on plugin option page.<\/li>\n<\/ul>\n<p>For more information, please visit the <a href=\"http:\/\/sergey-s-betke.blogs.novgaro.ru\/category\/web\/wordpress\/read-more\" rel=\"nofollow ugc\">Sergey S. Betke blog<\/a>.<\/p>\n<h3>ToDo<\/h3>\n<p>The next version or later:<br \/>\n* wordpress core integration for cache headers processing???<br \/>\n* optional http cache-control <strong>max-age<\/strong> header value and <strong>must-revalidate<\/strong><br \/>\n* just private cache headers, when post has limited access<br \/>\n* check cache plugins support (Hyper Cache Extended): clear cached responces when post modified<br \/>\n* cache-control and Last-Modification headers \u2013 to separate plugins<br \/>\n* <strong>if-modified<\/strong> http request support (separate plugins)<br \/>\n* <strong>the_excerpt<\/strong> optional support<br \/>\n* AJAX-read-more send correct http cache-control headers, and fully support client-side public cache.<br \/>\n* WP 3.3: http:\/\/wpdevel.wordpress.com\/tag\/3-3-dev-notes\/<br \/>\n* WP 3.3: replace wp_localize_script() with wp_add_script_before().  wp_localize_script doesn\u2019t support non-string params in WP 3.3+<br \/>\n* WP 3.3: wp_enqueue_script() now works mid-page \u2013 insert scripts just into pages when it\u2019t needed<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Automatically transform your <!--more--> links into links that immediately display the rest of your entry (AJAX).<\/p>\n","protected":false},"author":65,"featured_media":232270,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"AJAX Read More - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Automatically transform your links into links that immediately display the rest of your entry (AJAX)."},"footnotes":""},"categories":[1],"tags":[476,61],"class_list":["post-10541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-ajax","tag-jquery"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/10541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=10541"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/10541\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/232270"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=10541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=10541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=10541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}