Single page theme

I am trying to create single page theme. What i have trouble with is understanding this whole wordpress query logic. There is query object and supposedly i get all published posts like this: $query = new WP_Query( array ( ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘post_type’ => array( ‘page’ ), ‘post_status’ => array( ‘publish’ ) … Read more

How to create a wordpress template without using any page

I’m not sure WordPress was build for this, but this is what I’m trying to achieve: I want to make a specific URL inside wordpress accessible, for example . This specific URL should be editable from a php file, part of an existing wordpress theme I’m working on, something like some-template.php) This is the … Read more

How to create a page template that retrieves content from db?

I have to create a hundred of content pages that share the same structure. For example: [Title] – [Subtitle] [Description] [Specs] – [Spec-A] – [Spec-B] – [Spec-C] [Features] – [Image-A][Feature-A] – [Image-A][Feature-B] – [Image-A][Feature-C] I would like to store this information in some DB tables so that if I need to change the template content … Read more

Next & Previous (Pagination in this case) Not Appearing

I am using a custom page template for my portfolio. The code is calling the correct number of posts per page but for some reason the pagination links won’t show up :-S My query <?php $loop = new WP_Query(array(‘post_type’ => ‘portfolio’, ‘posts_per_page’ => 2)); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php $custom … Read more