Title: custom fields
Last modified: January 14, 2022

---

# custom fields

 *  [madeyoulook](https://wordpress.org/support/users/madeyoulook/)
 * (@madeyoulook)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/)
 * Is it possible to display custom fields content? How can I do that?

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15254063)
 * [@madeyoulook](https://wordpress.org/support/users/madeyoulook/)
 * This would need a custom set of code. Two options that I see here and heavily
   dependent on how many custom fields you have in mind.
 * The first is to use [CRP_Query](https://webberzone.com/support/knowledgebase/crp-query/)
   which is similar to WP_Query to get the posts and display them. That way you 
   can tap in to custom fields, e.g. if you’re using ACF then use the_field like
   you’d do with WP_Query.
 * This is probably the best option especially if you’re using ACF or similar.
 * The other alternative, is to use a filter function to filter either [crp_before_list_item](https://github.com/WebberZone/contextual-related-posts/blob/v3.1.0/includes/output-generator.php#L150)
   or [crp_after_list_item](https://github.com/WebberZone/contextual-related-posts/blob/v3.1.0/includes/output-generator.php#L177)
   to add the field content before or after the main list items that are displayed.
 *  [silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * (@silviaserpe)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15297607)
 * Hello, I’ve the same problem. I must insert one custom fiedl. I’ve created the
   field with ACF. I try to put the shortcode in crp after list item, but the shortcode
   doesn’t work. Can you help me?
 * The shortcode is [acf field=”name”]
    I try also with php but is the same
 * Greets
    Silvia
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15299740)
 * [@silviaserpe](https://wordpress.org/support/users/silviaserpe/) what is the 
   full code you are using?
 *  [silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * (@silviaserpe)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15301213)
 * I use the shorcode.
    [acf field=”name”] greets Silvia
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15305735)
 * You can’t put that into the settings as the shortcodes are not processed. You’ll
   need to do a custom install (as mentioned above using CRP_Query) in order to 
   display ACF fields the related posts output.
 *  [silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * (@silviaserpe)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15309496)
 * Can you help me? Because I’n not a developer.
    I don’t know where to put the 
   code and what is the code to put. Greets Silvia
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15314068)
 * [@silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * Let me work up an example. I don’t have ACF so will be untested code. I’ll get
   back to you
 *  [silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * (@silviaserpe)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15314134)
 * you can see here the related products in the page, under the pumps.
 * [https://www.gmppumps.com/en/product/flanged-pumps-for-gasoline-and-diesel-engines/](https://www.gmppumps.com/en/product/flanged-pumps-for-gasoline-and-diesel-engines/)
 * I need to optain this result, if you scroll down the page you can see the pumps.
   
   [https://www.gmppumps.com/en/pumps/industry/](https://www.gmppumps.com/en/pumps/industry/)
 * The custom field of ACF is called “versioni”
    Thanks in advance
 * Silvia
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15316916)
 * [@silviaserpe](https://wordpress.org/support/users/silviaserpe/)
    Is it this 
   text e.g. “4 KW 400/690 V T.”
 *  [silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * (@silviaserpe)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15318847)
 * Yes it is
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15333867)
 * [@silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * Would you be able to extract the code that displays the layout on your site and
   paste here or in a gist?
 *  [silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * (@silviaserpe)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15337668)
 * I don’t know if is correct
 * [https://ibb.co/9qh8sz6](https://ibb.co/9qh8sz6)
 * the page is here [https://www.gmppumps.com/prodotto/b8xr-a-r-30-kw-400-690-v-t-1450-giri/](https://www.gmppumps.com/prodotto/b8xr-a-r-30-kw-400-690-v-t-1450-giri/)
    -  This reply was modified 4 years, 4 months ago by [silviaserpe](https://wordpress.org/support/users/silviaserpe/).
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15351980)
 * [@silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * This would be part of the theme files that you have – it might single.php or 
   index.php more likely.
 * Do you know which theme you are using and if this was custom changed?
 * You’ll need to post the code to gist.github.com ideally.
    -  This reply was modified 4 years, 4 months ago by [Ajay](https://wordpress.org/support/users/ajay/).
 *  [silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * (@silviaserpe)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15354403)
 * The theme is Avada. No it has not been changed

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘custom fields’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)

 * 14 replies
 * 3 participants
 * Last reply from: [silviaserpe](https://wordpress.org/support/users/silviaserpe/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-389/#post-15354403)
 * Status: not resolved