Archived topic
Posts as List
18 replies · Started by Rafael on July 20, 2022
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
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
It might be good to ask in our GP Community as well: https://www.facebook.com/groups/1113359788719597
I find that there are plenty of developers there open to help or for work.
Hope this helps!