• Resolved John Kostly

    (@johnkostly1)


    This was working, but now the Title and Description of the og:title and og:description are pulling from the page title and the page excerpt, and NOT the Yoast SEO box.

    edit: this also happens with the twitter meta data.

    • This topic was modified 2 months, 1 week ago by John Kostly.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter John Kostly

    (@johnkostly1)

    I believe you’ve also broken all Filters and Actions associated with these fields, including these hooks.

    add_filter( 'wpseo_title', array( $this, 'replace_title_text_pre' ) );
    add_filter( 'wpseo_opengraph_title', array( $this, 'replace_title_text_pre' ) );
    add_filter( 'wpseo_metadesc', array( $this, 'replace_title_text_pre' ) );
    add_filter( 'wpseo_opengraph_desc', array( $this, 'replace_title_text_pre' ) );

    I have multiple sites that were using this code, and they were working, but now its not. They’re all broken.

    • This reply was modified 2 months, 1 week ago by John Kostly.
    Thread Starter John Kostly

    (@johnkostly1)

    Massive, Crushing Bug. 100% confirmed.

    This filter is also no longer working:

    add_filter('pre_get_document_title', array($this, 'replace_title_text_pre'), 999, 1);

    This affects all “og:” meta tags, which is now populating the wrong data (the excerpt and main page title) and not the Yoast Description / Title fields.

    • This reply was modified 2 months, 1 week ago by John Kostly.
    Thread Starter John Kostly

    (@johnkostly1)

    A display that shows it: https://pricelessgemstone.com/kinky_activities/nightly-bdsm-prayer-affirmation-to-the-dominant/
    (NSFW)

    Please note, the <title> tags are correctly getting changed, but not the og:title any more, and you can see that the site title is no longer added to the og:title despite it showing on the title.

    I manually enter in the title and description in the yoast plugin, removing the {Title} token so that it won’t be shown. Now, this is no longer working. I also have another website using these same hooks, and now they are showing NO title, and NO description.

    • This reply was modified 2 months, 1 week ago by John Kostly.
    Thread Starter John Kostly

    (@johnkostly1)

    add_action( 'wp_loaded', array( $this, 'add_yoast_schema' ) );
    add_filter('pre_get_document_title', array($this, 'replace_title_text_pre'), 999, 1);

    public function add_yoast_schema() {
    //add_filter('wpseo_opengraph_title', array($this, 'custom_og_title'),999,1);
    //add_filter('wpseo_opengraph_title', array($this, 'custom_og_title'),999,1);
    //add_filter('wpseo_title', array($this, 'custom_og_title'),999,1);
    //add_filter('wpseo_title', array($this, 'custom_og_title'),999,1);
    add_filter( 'wpseo_title', array( $this, 'replace_title_text_pre' ), 999, 1 );
    add_filter( 'wpseo_opengraph_title', array( $this, 'replace_title_text_pre' ), 999, 1 );
    add_filter( 'wpseo_metadesc', array( $this, 'replace_title_text_pre' ), 999, 1 );
    add_filter( 'wpseo_opengraph_desc', array( $this, 'replace_title_text_pre' ), 999, 1 );
    }

    public function replace_title_text_pre($title) {
    //$title = get_the_title();
    $title = str_replace('{Title}', 'Dominant', $title);
    $title = str_replace('{title}', 'Submissive', $title);
    return $title;
    }

    Plugin Support Maybellyne

    (@maybellyne)

    Hello @johnkostly1

    I’m sorry about your experience. We’re actively using the bug tracking on our GitHub repository, so your best next step would be to create a new issue for our developers here.

    You will need an account to create a new issue. Please provide as much information about the issue, including the URL to this conversation. This guide will help you submit a complete report which may result in a faster resolution.

    Thread Starter John Kostly

    (@johnkostly1)

    I’m sorry, I will be unable to file the ticket.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.