• Resolved Agnes

    (@agneslesagegmailcom)


    Hi

    I have a custom field “subtitle” and have managed to insert it in the admin of SEO plugin, so i could actually have my metadescription look like:
    %%subtitle%% – %%excerpt%%

    However, I was unable to find out where to add code in the plugin file, so that this would be reflected ion the admin pages preview snippet. Any idea?

    Thanks
    Agnes

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 13 replies - 1 through 13 (of 13 total)
  • I would like to know this as well 🙂

    Any luck figuring this out? I would also like to use my own custom fields.

    Thread Starter Agnes

    (@agneslesagegmailcom)

    Nop.. i have not found out.
    I could only insert it into the defaults, but not in the preview. If we are more asking for it… may be the real masters of the code will answer?

    %%cf_<field name>%%

    Thread Starter Agnes

    (@agneslesagegmailcom)

    Hi Spicy! Thanks for ther hint
    But the big question for me was / is also in where (of the plugin file) to exacly intervene, so that the additional field shows on the admin pages preview snippet?
    Would be glad to know

    You don’t need to edit anything in the plugin files to display this in the snippet preview. you just need to configure the titles in the plugin here yourdomainname.com/wp-admin/admin.php?page=wpseo_titles
    and the info here will be automatically displayed in the snippet section.

    Thread Starter Agnes

    (@agneslesagegmailcom)

    I don’t get it…
    If I ust add cf_%%subtitle%% in my titles setting page for posts let us say, unfortunately they don’t render in the titles!

    I had added %%subtitle%% and how to get this value in class-config.php and wpseo-functions.php. It does render then in my metas, but I can’t get it to show in the snippet preview in admin!

    Thread Starter Agnes

    (@agneslesagegmailcom)

    Oh, actually, it works now
    So what I did is:
    – added %%subtitle%% in class-config.php (just for info for users)
    – added it and how to get it in wpseo-functions.php

    Thread Starter Agnes

    (@agneslesagegmailcom)

    mmm… no, actually it does not show in the preview…
    In fact, they show for the title, but not for the description.

    Thread Starter Agnes

    (@agneslesagegmailcom)

    Plugin Contributor Joost de Valk

    (@joostdevalk)

    Well you’re editing the plugin as you said above, so I can’t really help you.

    Thread Starter Agnes

    (@agneslesagegmailcom)

    ok….

    If I knew for sure how to achieve the result without editing, that would be fine!

    – so custom fields can be added with %%cf_<field name>%%
    (would be nice to add that vinfo on bottom of the admin page fpor titles)

    – any chance for custom taxonomies?

    Thanks, Agnes

    Plugin Contributor Joost de Valk

    (@joostdevalk)

    – Will add that to admin page indeed.
    – Yes, but not soon…

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Add custom field reflect in snippet preview?’ is closed to new replies.