• Resolved narayan.changder

    (@narayanchangder)


    All in one seo pack is great. On my website, I want to run short-code in auto-generated description (it is working well) as well as in title( trim the length of title from text generated from short-code). Is there any way to achieve this functionality?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    Thread Starter narayan.changder

    (@narayanchangder)

    Thanks. I will wait for this functionality.

    Thread Starter narayan.changder

    (@narayanchangder)

    Hi Torbert. I am facing some problem. I see when the plugin generates auto description from content using do_shortcode(), its working. So, I tried to use the do_shortcode() function in plugin’s wp_title() function but its not working. Could you please tell me how can I achieve this?

    /*** Used to filter wp_title(), get our title. ***/
    function wp_title() {
    global $aioseop_options;
    $title = false;
    $post = $this->get_queried_object();
    if ( ! empty( $aioseop_options[‘aiosp_rewrite_titles’] ) ) {
    $title = $this->get_aioseop_title( $post );
    $title = $this->apply_cf_fields( $title );
    }

    if ( false === $title ) {
    $title = $this->get_original_title();
    }

    $content = $post->post_content;
    $title=do_shortcode($content);

    return apply_filters( ‘aioseop_title’, $title );
    }

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Shortcode in Title’ is closed to new replies.