• Resolved zenynemenstruuji

    (@zenynemenstruuji)


    Hello,

    we are using external people who do not have acess to our WP website. We have been reposting the stuff manually but now we plan to automize the process. We are using wordpress_xmlrpc in python and we would like to also post keywords for internal links this way. Unlike other plugins (such as Yoast SEO) I did not find the name for ILJ keywords field in export (probably because they are stored separately and not with the post). wordpress_xmlrpc behaves like a person filling a form, so I guess with a right field name, it will not be a huge problem.

    We use this for Yoast SEO

    post.custom_fields = []
    post.custom_fields.append({
    'key': '_yoast_wpseo_metadesc',
    'value': 'Meta description ....'
    })

    But what ‘key’ could I use for internal links keywords?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Internal Links

    (@internallinkjuicer)

    The name of the post meta is “ilj_linkdefinition” which stores a serialized array of keywords in its value.

    We would not recommend to directly inserting the keyword list into the database, but rather utilizing our KeywordList class which handles sanitizing and validation of keywords for you:

    
    $myKeywords = ["keyword1", "keyword2"];
    $keywordList = new ILJ\Type\KeywordList($myKeywords);
    
    //add this to post meta:
    $keywordList->getKeywords();
    

    You will find the class here.

Viewing 1 replies (of 1 total)
  • The topic ‘ILJ keywords – what is the name of the field?’ is closed to new replies.