<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Use Magic tag as ID selector

[ad_1]

Replies: 1

Is it possible to use, somehow, a tag as an ID in a template? I need it for a multiple Popup on same page.

I.e.:

<div>
<h1 class=”project-title”>{@post_title}</h1>
<a class=”project” href=”#{{@post_title}”>
<img src=”{@post_thumbnail_url.1536×1536}”>
</a>
</div>
<div id=”{@post_title}” class=”overlay_popup”>…</div>

(This is obviously not working.)

Thanks

  • This topic was modified 3 hours, 46 minutes ago by MerelB.
  • This topic was modified 3 hours, 46 minutes ago by MerelB.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer