Pulling a Pods Framework custom field for meta title and description?
-
Hey Sybre
You answered a similar question before regarding using a ACF field for meta description and I’m trying to modify the code snippet to pull meta description and title from Pods Framework fields, but I can’t get it to work.
The stage:
I’ve got a custom post type called Materials with the following fields:
– Title (core)
– Featured image (core)
– Variants (custom plain text field, 2-3 words)
– Note (custom plain text field, max 150 characters)I’d like my Meta Title to be a concatenation of the core post Title + Variants, unless a custom title is entered in the TSF meta box on the post edit screen, of course.
I’d like my Meta Description to my Note field, unless a custom description is entered in TSF meta box.
I am pretty sure that is achievable in TCF and Pods, but as said, I’m having a hard time getting it to work, and even if I did, I’d like to be sure best practices are followed and the code is efficient and robust – not crashing if, say, I disable TSF or Pods for maintenance.
Can you lead me in the right direction?
Kind regards
BjarneThe page I need help with: [log in to see the link]
- The topic ‘Pulling a Pods Framework custom field for meta title and description?’ is closed to new replies.