• I am systematically validating 135 pages in my WordPress ebook. Here is one error I don’t understand:
    Error: No p element in scope but a p end tag seen. From line 566, column 467; to line 566, column 470 on_end --></p>↩<p st

    The code looks like this:
    <!-- cp_caption_start --><span class="captioned_image alignleft" style="width: 400px"><span id="attachment_2772" class="wp-caption"><img class="size-full wp-image-2772" src="http://www.stuehlingen.online/Book/wp-content/uploads/2017/01/BusColAbs-e1484691220393.png" alt="absolute business mix" width="400" height="282" /></span><small class="wp-caption-text">Figure 8. Absolute commercial pattern of 34 most active merchants.</small></span><!-- cp_caption_end --></p>

    yes, the final </p> is unpaired. But where does it come from? The caption is generated in the media library, as are 16 other captions that are all well behaved?

Viewing 4 replies - 1 through 4 (of 4 total)
  • your caption is not the default WordPress caption; it might be part of your theme or a plugin.

    what theme are you using, and/or what plugin are you using for the captionated images?

    your caption code does not seem to be the default WordPress caption; it might be part of your theme or a plugin.

    what theme are you using, and/or what plugin are you using for the captionated images?

    Thread Starter papaworx

    (@papaworx)

    CommentPress with CommentPress-Flat theme

    Thread Starter papaworx

    (@papaworx)

    In the page editor (Text) the illustration looks like this:
    [caption id="attachment_2888" align="alignleft" width="400"]<img class="size-full wp-image-2888" src="http://www.stuehlingen.online/Book/wp-content/uploads/2017/01/BusColAbs-e1485171019750.png" alt="Business mix, absolute" width="400" height="282" /> Figure 8. Absolute commercial pattern of 34 most active merchants.[/caption]

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

The topic ‘Validation error in figure caption’ is closed to new replies.