Skip to content
Advertisement

WordPress additional info

That’s what my post looks like at the moment:

enter image description here

I have the title ( David Art ) and the content (image + 1.25 eth). I as well have featured image: enter image description here

When I’m trying to get the title and featured image it works ok. But there are problems with content since I`m only able to get it together using the_content();. Is there a way to grab text “1.25 eth” and this small image separately?

Advertisement

Answer

One way to achieve that is to create a “custom post type” (instead of a regular port) and save those bits of content in different fields which you create in the custom post type. The content of these fields can then be called separately from a php template.

BTW: It’s not necessary to create a custom post type from scratch in your functions.php – you can also use the PODS plugin to create them which is a lot easier.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement