kailaf
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: change src attribute of shortcode based on user clickHi,
Thank you so much for the link. It was helpful.Forum: Developing with WordPress
In reply to: change src attribute of shortcode based on user clickHi,
Thank you again for responding.
I was creating wp-page for each pdf and linking it to the thumbnail image.
But there are too many pdf files to work with. So I was thinking may be there is a way to have a template-page with the pdf embed shortcode whose src can be dynamically changed for thumbnail click.Is there any other way of doing this?
Thank you.
Forum: Developing with WordPress
In reply to: change src attribute of shortcode based on user clickHi,
Thank you very much for responding.
The shortcode I am using looks something like this:
[pdf_plugin src=”http://abc.com/wp-content/1.pdf”%5DI want to dynamically change src based on the thumbnail clicked. For that, I added a custom url of a wp-page, followed by a query string of pdf-file url in the thumbnail(image) link.
This wp-page has slightly modified version of above shortcode that calls another plugin to get query string parameters, something like this:
[pdf_plugin [url_parameters attr=src param=query_string_name]]Result: The shortcode appears on the wp-page with query string value filled in for src parameter. But the pdf is not embedded.
Sorry if this is a straight forwarding thing to do. Please tell me what I am missing/doing wrong.
Thank you.