• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Add Custom Field To Entry Title

These 3 solutions enable you to add the value for a custom field before or after the entry title. You can also output the custom field on specific posts, archives and custom post types only if needed.

Here’s a very simple before and after example:

before

after

The above example shows you how to add an address after the title.

And this example outputs the custom field value before the title:

before-title

Instructions

Step 1 : Add the code below to your child themes functions file.

Step 2 : Create a new custom field named address and add your content to the value field like you see in the following image:

custom-fields

Its a very simple solution for Genesis users and includes 2 working code snippets for use globally & on custom post types.

Here’s the code for logged in members:

Register for full access

Related Code Snippets

  • 3 Ways To Replace Entry Titles On Single Posts With Different Title Text

Custom Fields

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems