We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
Hello,
i am trying to create a table which shows post ID, Title and the categories each post is assign too separated by a comma, much like the way wordpress backend displays them but whenever i try to add an argument in the array for the categories i get an error, most likely due to the fact that get_the_category() returns an array of the post categories.
Am i limited to only show one category per row for each post?
Currently trying to do this with the Serialized PHP array format for the table.
Any suggestions?
Also i do not seem to be able to output values from ACF custom fields as well
Thanks in advance
Managed to solve this , if anyone else needs a solution , basically you do this :
$post_categories = get_the_terms( $post->ID, 'category' );
if ( ! empty( $post_categories ) && ! is_wp_error( $post_categories ) ) {
$categories = wp_list_pluck( $post_categories, 'name' );
}
and then implode the array to a string within the array:
'Category' => implode(" , ",$categories)
HI avalonwebmedia,
Thank you for your purchase and thank you for sharing the solution with us and other customers.
Good job on finding the solution.
If you have any more issues feel free to open a new ticket, we will gladly help.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables