{"id":40267,"date":"2024-02-17T08:00:00","date_gmt":"2024-02-17T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/compare-table\/"},"modified":"2025-04-30T22:55:00","modified_gmt":"2025-04-30T22:55:00","slug":"compare-table","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/compare-table\/","title":{"rendered":"Compare table"},"content":{"rendered":"<p>Your visitors can easily compare services, products or anything else with the tables you create with this compare-table plugin.<\/p>\n<p>In your dashboard create as many tables as you want. Each table has <em>subjects<\/em> (the entities that are being compared) and <em>fields<\/em> (the properties the entities can be compared on).<\/p>\n<p>You can order the subjects and fields in any way you want. You can also add a description to each field, which will be shown when a visitor hovers over the field name.<\/p>\n<p>Set the initial view of each table (how many columns, which subjects) which the visitor can change with select lists.<\/p>\n<p>Everything is nicely formatted by default, albeit a bit bland. You can easily override the css with your own, should you want to.<\/p>\n<p>The table works fine with touch devices as well. On mobile devices the width is automatically restricted to two columns.<\/p>\n<p>Show a compare-table anywhere by using the shortcode <code>[compare-table]<\/code> (which will show the first table).<br \/>\nTo show a specific table that is not the first one, you can provide its id (the <code>type_id<\/code> in the querystring) or title, like so:<br \/>\n\u2013 <code>[compare-table type=1]<\/code> the id must be the type_id in the querystring when you edit this table<br \/>\n\u2013 <code>[compare-table type=\"my table\"]<\/code> this must be the exact title you gave your table<\/p>\n<p>Note: providing the id is slightly faster.<\/p>\n<p>The plugin adds 4 tables to your database. For each compare-table there are two highly optimized queries executed.<\/p>\n<p>Enjoy the plugin! Let me know if you have any questions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creates a table where a visitor can compare services or items or anything really, that you provide from the admin interface.<\/p>\n","protected":false},"author":65,"featured_media":255075,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Compare table - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Creates a table where a visitor can compare services or items or anything really, that you provide from the admin interface."},"footnotes":""},"categories":[1],"tags":[2321,164,10714,4444,882],"class_list":["post-40267","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-compare","tag-interactive","tag-items","tag-services","tag-table"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/40267","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=40267"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/40267\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/255075"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=40267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=40267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=40267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}