How To Create Dynamic Routes In WordPress

preview_player
Показать описание
In this video, we go over how to creat a dynamic route in WordPress

💖 Become a Patron to show support & get perks!

Sign up for the newsletter. Free course coming soon:

**SOCIAL**
Рекомендации по теме
Комментарии
Автор

Seriously, this is not a regular tutorial, this is really advanced and super informative. I've think about this awhile ago, but couldn't find the tutorial elsewhere. Big thanks Alex.

StevanGeorge
Автор

Thank you. Super helpful video.

I got a simple example working in no time and now I'm moving on to my desired implementation, which is to create a downloadable ICS file.

My first ICS implementation generated the ICS file on the client using JS. Shortly after that I added creation of an equivalent ICS file on the server to be sent as an attachment to an alert email.

I didn't like having two different implementations for the same ICS file, so I'm deprecating the client side generation and replacing it with a hyperlink to a dynamic route that generates the ICS file using the same code as the email alert. Sweet!

I didn't expect this to be so clean. Thanks again!

chaz
Автор

Very helpful. I'm using this setup to receive webhook response and its an easy way to get dynamic routes for many use cases. We should have more videos of these odd implementations 😉

alvinolavarrieta
Автор

You are a legend sir. This has been bugging me all day and not one person could solve the problem. This video has been legendary.

markshergold
Автор

Mind blown. Definitely advanced, but I love that you covered mistakes that one might make along the way.

erichepperlewp
Автор

Thanks for covering this! I will definitely make use of it.

Daniel
Автор

This is exactly what I was looking for, thank you Alex.

hermanchan
Автор

Well explained and made the complex topic easy and clear for beginners like me. Thanks for the video. Hope will get more WordPress tutorials from you. 😄

jaied
Автор

nice video. but can i edit permalink structure on edit page or post type?

marcitrixie
Автор

Gob and Tobias? i wonder if anyone else caught the A.D reference 😄😄 great work btw

cbee
Автор

This was super useful! And you explained it in a simple, easy understandable way! :)

bsevo
Автор

Thanks

I want set custom content-type also. How is that possible

i.e, When a user visits /svg/:MyName
Then it return a dynamic svg image containing MyName data with content-type:image/svg+xml

elabinnovations
Автор

Thanks so much! This is exactly what I needed!

tamarayee
Автор

Thnx for you great content
I have two questions regarding the video:
1- what is the use of add rewrite tag?
You didn't use it here. I just can't understand when is neseccary to employ the rewrite tag function

2- is this querying safe and secure? No further need for any sanitization?

PaymanShamlu
Автор

Thanks for the Tuts. I tried to rewrite and it worked but my problem is with the flushing of rewrite rules. I tried doing on plugin activation but it doesn't work. Any idea on how to go about?

MultiPitshou
Автор

Isnt 'template_include' supposed to be a filter and not an action?

theman
Автор

Hello, thanks for this. This video is very helpful to me, but is there a way to record that 'route' to analytics like jetpack, koko, etc? It only records the page but not the specific character. I would like to see which characters are popular and not.

jdzreacts
Автор

Thanks, this video was very helpful !

megameketref
Автор

thank you for the video, i want ask to its not related to wordpress but, i saw in your video in 15:12 you say thank you and the like button glow up, is there new youtube feature?

kokngonose
Автор

Thanks you so much for such an amazing video!

paur.