bobbingwide / oik-ajax

Ajaxify paged shortcodes
https://oik-plugins.com/oik-plugins/oik-ajax/
GNU General Public License v2.0
1 stars 0 forks source link

Support ajaxified pagination of shortcodes in post_meta fields #2

Open bobbingwide opened 8 years ago

bobbingwide commented 8 years ago

For bobbingwide/oik-requests/issues/1 we intend to store the summary information for files, queries, and hooks in post_meta data associated with each oik-request post. This information will be displayed on tabs on the oik-requests page. Since there can be a massive amount of data the display needs to be paginated And we would prefer pagination to be ajaxified.

Proposed solution

Find a simple solution to support pagination of fields which contain shortcodes, such that shortcode expansion is only performed on the subset of data being displayed on the current page.

bobbingwide commented 8 years ago

The current solution using [bw_field field] appears to work when the field contains a paginatable shortcode, but the Ajax call attempts to process the wrong shortcode. We would need to load the field and treat it as the post_content.

bobbingwide commented 8 years ago

We're going to use the [bw_navi] shortcode to implement this, using a new field=fieldname parameter and passing posts_per_page when navigation is required.