• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

IDEA Shortcode with slugs

Status
Not open for further replies.
Messages
11
Likes
0
Points
1
#1
Is it possible to add support for name and not only id in the shortcodes

Today:
[wbcr_php_snippet id="xxx"]

Feat:
[wbcr_php_snippet name="mysnipp"]

Something to fix?
 
Messages
11
Likes
0
Points
1
#2
I need this to find the correct snipp not to insert data as arg. Lets say that you have ha file that you never change in the themefolder but want to access a snipp by name. Then you never need to update the file in the themefolder if i could do this


[wbcr_php_snippet name="aboutpage"]

Widget Wrangler has this feature to use both id or name (in that case they call it slug). Maybe you already have slugdata to support this feat.

If you patch it I can try it out for you :p
 
Status
Not open for further replies.