enter image description here

WordPress display the_meta() of in custom page

I have some meta values on my wordpress custom page that I need to be displayed in a table. Is there any way I can do that.

Here’s the code I’m using now: <?php the_meta(); ?>

And this is what it shows:

enter image description here

I want to do something like:

enter image description here

I found out that:

the_meta() is located in wp-includes/post-template.php

This makes the output:

 

So it’s not recommended to edit files in that folder because of the wordpress update.

You can make a table in html and display each value individually, like this:

 

Here‘s the documentation or https://codex.wordpress.org/Using_Custom_Fields


Also published on Medium.

Leave a Reply

avatar
  Subscribe  
Notify of