• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

phpwordpressyoast


PHP Snippet 1:

echo get_post_meta(get_the_ID(), '_yoast_wpseo_metadesc', true); 
echo get_post_meta(get_the_ID(), '_yoast_wpseo_title', true); 

PHP Snippet 2:

do_action( 'wpseo_head' );

PHP Snippet 3:

echo YoastSEO()->meta->for_current_page()->description;

Related Snippets

ORA-12546: TNS:permission denied error connection to remote oracle server

get attribute from class not working php 7

woocommerce get_order_report_data to show order_item_id

Don't show recurring price for WooCommerce subscriptions worth 0$

how to hide previous markers when new markers added in google map javascript api

PHP header location absolute URL

PHPExcel_IOFactory::createWriter causes wrong behaviour

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

Any AWS EB Laravel route getting 404 Not Found nginx/1.16.1

PHP: Print caught exception like Xdebug

Xdebug can't connect back to Docker host

I want to store data in new index as per my key in php [duplicate]

How to convert binary string to normal string in php

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

About Contact Privacy policy Terms and conditions