Caption substituting for the first paaraagraph

[caption id="attachment_855" align="alignright" width="150"]<a href="https://tarekrabaa.com/من-أنا/" target="_blank" rel="noopener"><img src="https://tarekrabaa.com/wp-content/uploads/2018/04/tarekrabaa1.jpg" alt="طارق الربعة" width="150" height="84" class="wp-image-855 size-full" /></a> <a href="https://youtu.be/tRcMAwK8K1Q" style="color: #ffd700;">طــارق الربعــة</a>[/caption]<p style="direction: rtl;">البرقية المنقولة 303 هي مسٌّ فاضح لحريّتي الشخصية داخل أراضي الجمهورية اللبنانية وذلك عبر إجراء مخالف للقانون وخارق للدستور اللبناني الذي يقول في مادته الثامنة بأنّ «<strong>الحرّية الشخصية مصونة وفي حمى القانون»</strong> (ولا يقبض على أحد أو يحبس أو يوقف إلا وفاقاً لأحكام القانون ولا يحدّد جرم أو تعيّن عقوبة إلا بمقتضى القانون).</p>

Hello,

While using this caption in PRO, Yoast SEO is telling me that the focus keyword doesn’t appear in the first paragraph.
Similar case without caption was working normally for the focus keyword but this time with caption the keyword is not seen in the first paragraph.
Is Caption considered as paragraph in PRO editor?
Why?

Hi there,

As you may know the [caption] shortcode is the default WordPress shortocde. I used the exact code you gave and here is the generated HTML code:

<div id="attachment_855" style="width: 160px" class="wp-caption alignright">
	<a href="https://tarekrabaa.com/من-أنا/" target="_blank" rel="noopener">
		<img src="https://tarekrabaa.com/wp-content/uploads/2018/04/tarekrabaa1.jpg" alt="طارق الربعة" width="150" height="84" class="wp-image-855 size-full">
	</a>
	<p class="wp-caption-text">
		<a href="https://youtu.be/tRcMAwK8K1Q" style="color: #ffd700;">طــارق الربعــة</a>
	</p>
</div>
<p style="direction: rtl;">البرقية المنقولة 303 هي مسٌّ فاضح لحريّتي الشخصية داخل أراضي الجمهورية اللبنانية وذلك عبر إجراء مخالف للقانون وخارق للدستور اللبناني الذي يقول في مادته الثامنة بأنّ «<strong>الحرّية الشخصية مصونة وفي حمى القانون»</strong> (ولا يقبض على أحد أو يحبس أو يوقف إلا وفاقاً لأحكام القانون ولا يحدّد جرم أو تعيّن عقوبة إلا بمقتضى القانون).</p>
<span class="cp-load-after-post"></span>  

As you can see before the P tag that you used there is another P tag with the class of wp-caption-text. So the Yoast plugin will not consider your P tag as the first P tag used in the article.

You will need to avoid using [caption] at the very first section of your page if you want to have the Yoast plugin detect your text as the first paragraph.

Thank you.

1 Like

Hi,

I added a new section with text containing the keywords search in a paragraph before the caption.
Still Yoast is not detecting the keyword in the first paragraph.

Hi There,

To clarify things; this does not have an impact on your site SEO. Everything outputs correctly on the front end. The problem is that Yoast can’t properly access the content of our V2 elements to analyze.

This is a known issue and our Dev Team is still investigating this. This is also very important to us to be fixed as a lot of users are using Yoast SEO. Our team focus right now is fixing old bugs and usability improvements and integration of YOAST for V2 elements is one of it.

You can check the other things here that our Dev Team is working on right now.

Stay tuned for the next update.

Cheers!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.