Template functions
ptp_get_posts_table
This function can be used in your theme or plugin to retrieve a posts table, passing a list of arguments as an array.
Arguments
array
- The list of arguments to create the posts table. The array keys supplied should match the shortcode option names. List-based arguments (such as the columns
option) can be passed as a comma-separated string or an array.
Return
string
- The complete HTML for the posts table.
ptp_the_posts_table
Similar to the above function, but will print (i.e. echo) the table output, rather than return it.
Arguments
array
- The list of arguments to create the posts table. The array keys supplied should match the shortcode option names. List-based options (such as the columns
option) can be passed as a comma-separated string or an array.