Tuesday, May 28, 2013

[Help Wordpress] Dynamically change slider id


Dynamically change slider id



Hi,


Is it possible to determine the id of the slider to be used dynamically? Example:


where sliderid would be a parameter passed in the url (e.g. http://someurl.com/test?sliderid=1)


When I try to do it, I get an error: RoyalSlider Error] Incorrect RoyalSlider ID in shortcode or problem with query.


Maybe there is another way to do this? The idea is to write the code once in a wordpress page template and have each page show the slider that corresponds to the page by passing a parameter through the URL. (using shortcode in page editor is not an option, the slider has to be called between the header and the content of the page).


Thanks.



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post