• Resolved soulwasted

    (@soulwasted)


    Hi,

    I am customizing titles (meta) for custom posts.
    For person there are:
    — person-titles_before (relationship)
    — person-name (text)
    — person-surname (text)
    — petson-titles_after (relationship)

    When used as snippet variables for titles I have:
    %%cf_person-titles_before%% %%cf_person-name%% %%cf_person-surname%% %%cf_person-titles_after%%

    But I get in browser:
    Array Name Surname Array
    Should be:
    doc. Ing. Name Surname Dr.

    So my question is.
    Is it possible to display PODS relationships properly as snippet variables?

    Thank you.

    Best,
    Josef

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support amboutwe

    (@amboutwe)

    This typically happens when the custom field stores information in an one-to-many relationship instead of a one-to-one relationship. In these cases, you or your developer can use the wpseo_register_extra_replacements filter to add custom variables. An example code snippet is here.

    • This reply was modified 6 years ago by amboutwe.
    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PODS custom field as relationship displays as “array” in title’ is closed to new replies.