WordPress.org

Ready to get started?Download WordPress

Forums

how to add category_title in Description Format in All in One SEO Pack (3 posts)

  1. Chico32
    Member
    Posted 5 years ago #

    hello, I must add the option

    %category_title%

    necessary add in Description Format

    Description Format in the plugin "All in One SEO Pack" that not only the plugin is not possible and necessary to add a line of code in line: 1386

    the plugin only supports these macros:
    The following macros are supported:

    * %blog_title% - Your blog title
    * %blog_description% - Your blog description
    * %description% - The original description as determined by the plugin, e.g. the excerpt if one is set or an auto-generated one if that option is set
    * %wp_title% - The original wordpress title, e.g. post_title for posts

    is a simple thing, the more I do not know! : (

    anyone can edit please inform me how to do?

    thanks!

  2. Chico32
    Member
    Posted 5 years ago #

    Just add a line of code that make "release" the code in this option.

  3. Chico32
    Member
    Posted 5 years ago #

    ` $description = str_replace('%description%', $description, $description_format);

    $description = str_replace('%blog_title%', get_bloginfo('name'), $description);

    $description = str_replace('%blog_description%', get_bloginfo('description'), $description);

    $description = str_replace('%wp_title%', $this->get_original_title(), $description);

    is necessary add

    $description = str_replace('%category_title%', $?????(), $???????);`

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags