L
L
leviathan2017-05-10 17:06:01
PHP
leviathan, 2017-05-10 17:06:01

How to display a specific widget in wordpress?

How to display a specific widget?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
EliasMath, 2018-07-09
@EliasMath

how can it be parsed

What were the options? You can write a parser yourself and parse using regular expressions.

R
Roma Antonyuk, 2017-05-10
@smilik96

look here https://wp-kama.ru/function/the_widget

N
Nikolay S., 2017-05-10
@Nikolays93

Once upon a time, I needed a plugin - widget-shortcode .
Once installed, each widget is assigned a shortcode like [widget id="text-1"].
To display the shortcode use <?php echo do_shortcode('[widget id="text-1"]'); ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question