• Resolved trebor33

    (@trebor33)


    Hello:

    I have the autogenerate descriptions options checked under Advanced Settings. I have a couple of post types for which I want to have All in One SEO generate the description from text in a meta field instead of using the excerpt/content (which is the default).

    In reviewing the documentation for the plugin I noticed the aioseop_description filter (https://semperplugins.com/documentation/aioseop_description/) which I assumed could be used to create some conditional code that would check the post type and generate the description from the meta field for the post types in which I need to do this.

    The filter does not appear to be working. If I add the filter to my functions file for the theme as it appears on the documentation page (as is without adding any additional code where the comment “make filter magic happen here” appears) I get the dreaded white screen of death.

    Here is the code I am adding to my functions file:

    function filter_aioseop_description($description) {?
    return $description;
    }

    add_filter(‘aioseop_description’, ‘filter_aioseop_description’, 10, 1);

    What am I missing here? Seems like this should be correct.

    Please get back to me when you have a chance. Thanks for your help!

    The page I need help with: [log in to see the link]

  • The topic ‘Description Filter’ is closed to new replies.