php - How to create a thumbnails page in WordPress -
i'm creating wordpress photoblog theme , want create thumbnails page sits between index.php , single.php.
the idea when clicks on blog post, go thumbnails page see photos attached post , click on individual image redirected blog entry. wp templating support this?
wordpress loads files inside of theme's directory, aren't limited wp much.
if want, why not make index.php file have section runs when receives $_get variable denoting user has requested thumbnails page?
this sort of mean:
single.php:
<?php if (isset($_get['gallery'])) { // show gallery. } else { // show main content instead } ?> and on index.php, add gallery parameter urls:
<a href="single.php?gallery=1&foo=bar">title of article</a> but that's way i'd it.
Comments
Post a Comment