Site logo

Archived topic

Posts as List

18 replies · Started by Rafael on July 20, 2022

Viewing posts 16–19 of 19

It doesn't need <li>, its only a list with search and sort....but with the option to add custom columns....

I'd purchase a sucription in GenerateBlock it they develop a template to show post as a list.....

I've seem in patter library and they dont have the templte to show content as a list.....

I see. You’ll need custom code, or a third party plugin to achieve the search and sort functionality.

The level of customization/coding needed for this would be out of our scope. For reference though, you can try exploring examples like this: https://www.w3schools.com/howto/howto_js_filter_table.asp

Also see: https://stackoverflow.com/questions/9127498/how-to-perform-a-real-time-search-and-filter-on-a-html-table

GenerateBlocks doesn’t offer such a functionality as well.

Hope this helps!

Who can customice this code, and how much for it??

function get_all_categories() {
$categories = get_categories();
if ($categories) {
echo '<table class="category-list"><tr><td><h3>Titulo</h3></td></tr>';
foreach($categories as $category) {
echo '<tr><td>term_id) . '">' . $category->name . '</td></tr>';
}
echo '</table>';
}
}
add_shortcode( 'get-all-categories-shortcode', 'get_all_categories' );

This is what it shows: https://www.calculadoralaboral.com/post-codigo-de-trabajo/

I need something like this: https://www.calculadoralaboral.com/codigo-de-trabajo/ .....+ customize fields (CF)

I need the options in the shortcode: specific category by ID, the search option, a paging, order by and insert custom fields.....

Rafael

This archived topic is closed to new replies.