PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Creating Custom Fields with SEO Ultimate

  1. When creating a post form, is it possible to create a custom field that will fill the seo fields like title tags, descriptions and such? If so, Id like to know how. Im currently using SEO Ultimate plugin as it seems better than AIO SEO.

    Thanks

    Posted 12 years ago on Wednesday November 2, 2011 | Permalink
  2. You can accept data with your form and save it in custom fields. The trick is to find out the metakey that your SEO plugin is using, and use that as the custom field name in your form where you accept the data. That way, the form submission populates the custom field, then the plugin looks for that custom field and uses it for the SEO title, description, meta, whatever.

    You will need to find out what the field names are for your plugin. In the past, I've populated one post manually with all the data, then checked the database with something like phpMyAdmin to see the exact spelling of the metakey names. Then use those names when you create your form.

    Posted 12 years ago on Wednesday November 2, 2011 | Permalink
  3. I see. What are ways to find out the metakeys my plugin is using for a certain field? Im not quite familiar with checking the database for it so it would be of great help if you could provide steps on how to do it.

    The plugin Im using is "SEO Ultimate" in case someone would already know what metakeys that this plugin uses.

    Thanks

    Posted 12 years ago on Thursday November 3, 2011 | Permalink
  4. Hi Ryan,

    A quick way to see all of a post's meta is the get_post_custom() function. Here is something you can paste in your functions.php file. Then navigate to the post single page and you should see all of the post meta at the top of the page.

    Be sure you do not make this change to your functions.php from within the admin. Use an FTP editor instead.

    http://pastie.org/2806825

    Posted 12 years ago on Thursday November 3, 2011 | Permalink
  5. Looking quickly at the SEO Ultimate plugin, it looks like these two custom fields are used to hold the SEO title and Meta Description:

    • _su_title
    • _su_description

    You can use those as Post Custom Fields in your form and the data that's entered for those fields should populate the custom fields where the plugin can use the information.

    Posted 12 years ago on Friday November 4, 2011 | Permalink
  6. I installed the plugin and updated a form here:
    http://gravity.chrishajer.com/story-submission/

    Password for that is gravity

    You can see two fields there:
    Would you like to cram some keywords into your title? (_su_title)
    Meta Description (_su_description)

    I added those as custom fields to the form. I needed to select New for the custom field name, because custom fields that begin with an underscore are not shown in the WordPress admin. Just type them in carefully and it will be fine. You can submit a entry with some values in those fields then view the post that's created to see the effect of what you entered.

    Posted 12 years ago on Friday November 4, 2011 | Permalink
  7. Great! Thanks Chris I really appreciate it.

    Hey David
    Thanks for the info. I need to clarify something though. I'm assuming the "ID" in "($post->ID)" is the post's ID and I'll navigate to that exact post, is this correct?

    If there are any alternative ways, I'd like to know them please.

    And again Thanks to both of you.

    Posted 12 years ago on Saturday November 5, 2011 | Permalink
  8. Hi Ryan,

    I'm assuming the "ID" in "($post->ID)" is the post's ID and I'll navigate to that exact post, is this correct?

    Correct.

    In regards to alternate ways, I'm sure there are some; however, this is the way I typically do it as it is fairly straight forward and easy to do on the fly while I code.

    Posted 12 years ago on Wednesday November 9, 2011 | Permalink