Viewing 6 replies - 1 through 6 (of 6 total)
  • Animalejourbano,

    Personally I’d suggest using the Description field in All in One SEO Pack for this; but, you may also use the aioseop_description filter to customize the description that gets output.

    Thread Starter Animalejourbano

    (@animalejourbano)

    Sorry if I misunderstood what you said, or if I sound impolite, I don’t speak in english very well. I know that I can fill the description manually, but what I want is find the way to make it loads the info automatically from the custom field that I called “descripcion”. I don’t know where modify this, and how to do it. Thanks a lot for your answer, it means a lot to me.

    Animalejourbano,

    That’s fine; in that case, the aioseop_description filter should allow you to do this. Here’s an example, you may add this code to the functions.php in your theme, or to a plugin:

    add_filter( 'aioseop_description', 'animalejourbano_acf_description' );
    
    function animalejourbano_acf_description( $description ) {
        $field = '';
        if ( function_exists( 'get_field' ) ) {
            $field = get_field( 'descripcion' );
        }
        if ( !empty( $field ) ) {
            $description = $field;
        }
        return $description;
    }
    Thread Starter Animalejourbano

    (@animalejourbano)

    Thanks a lot for your help, I really appreciate it! One more question if I may: From where the plugin generate the keywords? I asume that is from the_content(); also, so… how can I change that too? Thanks!

    Animalejourbano,

    No, typically if keywords are auto generated, they come from your tags; not that you should be auto generating, or even really worrying at all about keywords these days.

    Thread Starter Animalejourbano

    (@animalejourbano)

    Thanks a lot again!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Fields’ is closed to new replies.