S
S
Sergey Stoyko2016-01-24 23:37:48
WordPress
Sergey Stoyko, 2016-01-24 23:37:48

Display shortcode as attribute value?

There is the following piece of code:

<button type="button" class="btn btn-danger" data-toggle="popover" title="Заголовок панели" data-content="Текст popover">Кнопка с popover</button>

How to display a shortcode like [shortcode id="aaa" title="bbb"] as the value of the data-content attribute?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Nikolaev, 2016-01-24
@Heian

So write it down
If your code section is page content that is edited through the admin panel, you do not need to write do_shortcode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question