PHP displaying a gallery
-
Hi All,
can someone please help i am trying to display a gallery via my own php file
I want to display the images in a row so that i can size them
<?php /* Template Name: Gallery2 */ ?> <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta name="description" content="<?php wp_title(''); echo ' | '; bloginfo( 'description' ); ?>" /> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <link rel="profile" href="https://gmpg.org/xfn/11" /> <meta name="viewport" content="width=device-width; initial-scale=1"/><?php /* Add "maximum-scale=1" to fix the Mobile Safari auto-zoom bug on orientation changes, but keep in mind that it will disable user-zooming completely. Bad for accessibility. */ ?> <link rel="icon" href="<?php bloginfo('template_url'); ?>/whiteboard_favicon.ico" type="image/x-icon" /> <?php wp_enqueue_script("jquery"); /* Loads jQuery if it hasn't been loaded already */ ?> <?php /* The HTML5 Shim is required for older browsers, mainly older versions IE */ ?> <!--[if lt IE 9]> <script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <?php wp_head(); ?> <?php /* this is used by many WordPress features and for plugins to work proporly */ ?> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/pictii.css" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> </head> <body <?php body_class(); ?>> <div id="header"> <div id="nav-primary" class="nav"><nav> <?php if ( is_user_logged_in() ) { wp_nav_menu( array( 'theme_location' => 'logged-in-menu' ) ); /* if the visitor is logged in, this primary navigation will be displayed */ } else { wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); /* if the visitor is NOT logged in, this primary navigation will be displayed. if a single menu should be displayed for both conditions, set the same menues to be displayed under both conditions through the WordPress backend */ } ?> </nav></div><!--#nav-primary--> </div> <!--close header--> <div id="content"> </div> <!--close content--> </body> </html>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PHP displaying a gallery’ is closed to new replies.