Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #423411

    Hello.

    A section of my website I use to display my real estate business.
    I added several custom fields (number of bedrooms, number of bathrooms, surface ….) to entries in which I publish my properties.
    How could show in the post the value of those custom fields?

    thank you

    #423566

    Hey romero2!

    Could you provide us with a link to the site in question so that we can take a closer look please? I’m not sure what you mean about custom fields, are you using a plugin?

    Cheers!
    Rikard

    #423599

    Wordpress allows (without external plugins) create custom fields in the blog posts. My question is if there is any way to see the value of these custom fields to publish the blog post.

    example: I create a blog entry describing property a property and its gallery of photographs. In this blog post I add two custom fields (number of bedrooms and area of the property). When publishing this blog you can see the description and gallery of the property, but how could also see the value of the two custom fields?

    #424216

    Hi!

    If you want to display them in the single post view then you can use the get_post_meta function, https://codex.wordpress.org/Function_Reference/get_post_meta.

    You can try around line 36 in the single.php file. Or inside the /includes/loop-index.php file around line 210 depending on where you want it to display.

    Best regards,
    Elliott

    #425620

    Thank you
    Regards

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘custom fields’ is closed to new replies.