B
B
BuBux2019-09-25 16:08:51
Laravel
BuBux, 2019-09-25 16:08:51

Is it possible to get the shortcode of a Wordpress page?

To create a page, I use two constructors. I would like to use one of the widgets of one constructor in another. I thought it could be done with a shortcode. Is it possible?
PS Maybe there is an easier way than I'm trying to find?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hnkhame, 2018-05-20
@PHPjedi

If I understand correctly, then

$postsIds = WatchList::where('user_id', Auth::user()['id'])->get()->pluck('post_id')->toArray();

T
tuxfighter, 2019-09-25
@tuxfighter

Is there an easier way than what I'm trying to find?

Do not use constructors, especially two at once on one site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question