Title: Yoast Variable Problem for AMP Version
Last modified: January 9, 2022

---

# Yoast Variable Problem for AMP Version

 *  [maykil](https://wordpress.org/support/users/maykil/)
 * (@maykil)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/yoast-variable-problem-for-amp-version/)
 * Hello,
 * I use variable in description section. But in AMP version, it doesn’t convert
   variable to data. For example I fill description section like this :
 * `This is my site title : %%sitename%% , and this is my site site description :%%
   sitedesc%%`
 * And when I check source code of AMP version of site :
 * `<meta property=”og:description” content=”This is my site title : %%sitename%%,
   and this is my site site description : %%sitedesc%%” />`
 * Screenshot : [http://prntscr.com/26bc94j](http://prntscr.com/26bc94j)
 * And whatever I wrote someting in TITLE section of Yoast Seo of page, output is:
   Site Name + Post Title.
 * I have this problem only with homepage, not with Posts.
 * How can I fix it?
 * Thanks you.

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

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/yoast-variable-problem-for-amp-version/#post-15235145)
 * Can you please share the URL of your website once?
 *  Thread Starter [maykil](https://wordpress.org/support/users/maykil/)
 * (@maykil)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/yoast-variable-problem-for-amp-version/#post-15280666)
 * Hello. Sorry it is a private site, I can not share it here. You can try yourself.
   Just install Yoast SEO and add some variables to description section of posts
   or mainpage. Then check source codes of AMP version of page which you added variables
   to description section.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/yoast-variable-problem-for-amp-version/#post-15297222)
 * Sure, we will check it but can you please let me know where you are placing them
   exactly? If possible can you please share some reference of where you are adding
   it exactly?
 *  Thread Starter [maykil](https://wordpress.org/support/users/maykil/)
 * (@maykil)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/yoast-variable-problem-for-amp-version/#post-15331454)
 * You can see the list of variables of Yoast SEO here : [https://yoast.com/help/list-available-snippet-variables-yoast-seo/](https://yoast.com/help/list-available-snippet-variables-yoast-seo/)
 * Just install Yoast SEO plugin. Create a post and add some variables to Meta Description
   section of Yoast SEO meta area which is placed under post editor. After that 
   publish this post.
 * Then check source codes of this post/page. You will see the problem which I told
   on first post of this topic.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/yoast-variable-problem-for-amp-version/#post-15341416)
 * Sorry for the delay in getting back extremely. We tested it on our end and in
   our observation, We did not get the mentioned issue. you can see it in the below
   screenshot. It might be due to conflict with other plugins. Can you please check
   it once by deactivating the plugins one by one on your site and let me know back
   the conflict plugin?
 * Here is the reference screenshot: [https://prnt.sc/26qt9rj](https://prnt.sc/26qt9rj)
 *  Thread Starter [maykil](https://wordpress.org/support/users/maykil/)
 * (@maykil)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/yoast-variable-problem-for-amp-version/#post-15359772)
 * Hello,
 * Thanks you for answer. Yes there is not problem with posts, but I have with static
   page which is set for index. Did you test it with posts or index page? I set 
   a page for frontpage of site. And when I do all these variable things with this
   page, I have this problem.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/yoast-variable-problem-for-amp-version/#post-15362840)
 * We tested it with posts.

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

The topic ‘Yoast Variable Problem for AMP Version’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/yoast-variable-problem-for-amp-version/#post-15362840)
 * Status: not resolved