All in One SEO Pack
Set default keywords (3 posts)

  1. skynic
    Posted 2 years ago #

    I was trying to make easier the selection of keywords and I thought default keywords would be great. The idea is have a pre-selected keyword including the wp_title and the option to add new ones.

    For example: (aioseop_functions.php)

    <?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
                <input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="62"/></td>

    I have this:

    <?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
                <input value="<?php echo $keywords ?> <?php echo wp_title ?> <?php _e('keyword 1, keyword2:', 'all_in_one_seo_pack') ?>" type="text" name="aiosp_keywords" size="62"/></td>

    All I have is this: (aioseop.class.php)

    and works good but I have to type at least one keyword to make ti work.

    				$keywords = str_replace('"','',$keywords);
    				$meta_string .= sprintf("<meta name=\"keywords\" content=\"%s, consultora it, consultora it rivas\" />", $keywords);

    Help please.


  2. skynic
    Posted 2 years ago #

    The first two codes didn't work for me. All I got is a kind of loop in the keywords everytime a update the post /page.

  3. Peter Baylies
    Plugin Contributor

    Posted 2 years ago #


    Rather than modifying the plugin, you should be able to use the aioseop_keywords filter to add keywords. However, you might want to read this first before you spend too much time on it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All in One SEO Pack
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.