[COLOR=#111111]So, I have create a wordpress site to showcase blogger & wordpress themes. Now I need to setup a Live Demo & Download links. Clicking on "Live Demo" user will go to iframe with topbar (example here: [/COLOR][URL]http://jsfiddle.net/EB6gN/34/[/URL][COLOR=#111111]). [/COLOR] [COLOR=#111111]But how can I add a subdirectory/url for a demo?[/COLOR] [B][I]This is that I want:[/I] Post URL: mysite.com/post-name.html DEMO URL: mysite.com/post-name.html[B]/demo/ - this is that I want. [I][B]Live Example:[/B] Post URL: [URL="http://btemplates.com/2012/blogger-template-modern-cars/"]http://btemplates.com/2012/blogger-t...e-modern-cars/[/URL] DEMO URL: [URL="http://btemplates.com/2012/blogger-template-modern-cars/demo/"]http://btemplates.com/2012/blogger-t...ern-cars/demo/[/URL][/I][/B][/B] Code (markup): I think, I need to make a demo folder in my public_htm folder and add a php file with some if-else, check the currently selected demo and pass it .... and load the code inside the matching if-else if block.. Please, could someone help me please to make php file? Or to help me make a live demo (using iframe) for my themes?
I don't have knowledge from Wordpress but the thing you are trying to achieve isn't going to work. Please write in full detail what you have, what you want and what you could not get done by yourself.
I just need a good and working demo link for my blogger & wordpress themes. Just check btemplates.com, premiumbloggertemplates.com as example.
Looked at your site. There are several add-ins that will allow php code in pages/posts if you want to do that. I agree with EricBouggema (above). Normally html is not a folder/directory like you are using it. It's usually a file. You have access to all the php that is used for the wp page. You can edit it if you are careful and know what you are doing. It's (WordPress) all just php with a special .htaccess file and mySQL. You might (IMHO) be better off paying someone to do what you want
WordPress can be used to do almost anything, but one thing it's really bad at is doing template demo sites. As davetrebas sais, you'd probably be better off having someone write a template demo site for you, and linking to that site for demos. The WP link can tell the demo site which template to demo and the link going back to the WP site can go back to the page it came from.
What you want to do is edit the htaccess. Google around and find some guide easy enough for you to follow. Or you can achieve it with the folder structure (e.g main folder is mywebsite, and it has a folder called demo which has the demo site, and an index.php). This way you call mydomain.com/mywebsite/demo, note that this isn't the correct way though.