Category : yoast

I want to use product full description as meta description in wordpress I’m using Yoast SEO. There is %%excerpt%% keyword to get short description. But I want full description. There is no keyword for full description. So I decide to make this using coding. <?php if ( is_product() ){ echo ‘<meta name="description" content="’.the_content().’">’; } ?> ..

Read more

I am using this code to display wordpress content in html pages: <?php // Include WordPress define(‘WP_USE_THEMES’, false); require(‘/home/hostsails/public_html/blog/wp-blog-header.php’); query_posts(‘page_id=123’); wp_head(); ?> {php} while (have_posts()): the_post(); {/php} <!–<h2>{php} the_title(); {/php}</h2>–> {php} the_content(); {/php} {php} endwhile; {/php} <br /><br /> <div class="space-12 visible-xs"></div> <!–Company Pages–> wp_head() should include yoast meta data from the specified page, but ..

Read more

I updated my WordPress Website to version 5.5.1 I noticed that some URLs changed. Bevor the update my Urls looked like this: Links to the category page: my/website/category/my-category-name Links to the articles: my/website/category/my-article-name After the update I have it this way Links to the category page: my/website/my-category-name (note that /category/ is gone) Links to the ..

Read more