Modify your code to use the correct query_posts call. Use
query_posts('post_type=portfolio&offset=" . $offset);
instead of
query_posts("offset=" . $offset);
Below is your code modified:
<?php
/*
Template Name: 2 Column Blog Template
*/
get_header();
?>
<section class="container">
<!-- 960 Container -->
<?php
$counter = 1; //start counter
$grids = 2; //Grids per row
global $query_string; //Need this to make pagination work
$paged = get_query_var("paged');
$offset = 0;
if ($paged != 0 ) {
$offset = ($paged-1) * get_query_var('posts_per_page') ;
}
query_posts('offset=" . $offset);
if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
global $more;
$more = 0;
...
The complete codex manual for query_posts is here
Related Posts:
- How to Add Custom Taxonomy To Woocommerce Plugin
- How to get the posts of a custom taxonomy term
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- Custom taxonomy not showing up when adding a new custom post type
- query multiple taxonomies
- wp_set_object_terms() is not replacing term, but creating a new one
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Create an archive page for custom taxonomies
- remove support for ‘Categories’ for a custom post type
- Rewrite permalinks for custom posttype and custom taxonomy
- How to check if last uri segment is a custom post type or taxonomy term?
- Categories under custom post types doesn’t show properly
- Hide child term posts on parent term pages
- How to select one major category (or custom taxonomy) for a custom post type?
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- get a list of posts from Custom Taxonomy
- Want to filter only parent post in admin area
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Child and grandchild taxonomy listings – 404
- Trying to manage templates on a blog with lots of custom taxonomies
- Display custom taxonomy as dropdown list
- Automatically Add a Category to a Custom Post Type
- Custom Permalink Tag breaks Pagination
- Display Custom Category (taxonomy) Name in Custom Post Type
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Query to change custom post type with specific category
- Custom post type and taxonomy permalinks – Structure
- Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
- Custom Post Type and Custom Taxonomy Permalinks
- next_post_link on custom taxonomy
- How many Custom Post Types to register?
- Insert HTML inside link in a walker
- Set menu active state for custom posttype and category, given custom taxonomy term
- How to bulk copy custom fields between custom posts?
- get_attached_media() on author page not working
- CPT UI change custom taxonomy url
- Custom post type structure for posts with multiple child posts
- Search / Filter posts on Title/Content OR Tags
- Show posts from two or more custom taxonomy terms
- Hide parent categories when clicked, and show it’s childs
- Custom taxonomy and custom post type – wrong permalinks and template
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- How to list custom taxonomies in the back end
- Auto Complete Search
- Custom taxonomy returns 404
- How to get custom posts sub category link
- permalink /category/post-name with custom post type and taxonomy
- Displaying Custom Taxonomies From Multiple Custom Post Types
- Display and register custom categories for custom post types
- Properly flush rewrite rules on plugin activation
- Adding predefined terms to a taxonomy
- Loop to display custom post type from a custom Taxonomy
- Redirect to archive is single post has a certain term assigned to it?
- Custom query – get_the_terms not work
- Custom taxonomy page returns 404
- portfolio custom type tags support
- Custom taxonomies to define versions of a product
- How to select a template for a custom post type?
- Targeting custom post type via functions.php doesn’t work
- category list with cutom post count
- Custom post type and taxonomy cross registration [duplicate]
- How do I add new post formats to twenty fourteen theme?
- Custom taxonomy not saving correctly
- Display a random customposttype2 excerpt in single-custompostype1.php that shares same taxonomy
- Custom Post Type Rewrite Throws Headers Sent Errors
- Custom archive page for custom taxonomy and pagination issue
- Ordering by meta value not working
- Custom taxonomy does not display in custom post loop
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- Order custom post type by taxonomy
- Return multiples taxonomies with wp_get_object_terms
- How to add CSS class field in Custom Taxonomy?
- How can I output a post’s custom taxonomies to a two column list?
- Pagination with a custom post type
- taxonomy – templates are not loading
- week days sorting based on starting day
- Taxonomy Page Go to 404 pgae
- Displaying custom taxonomy related to each post type
- Changing an item in drop down after 5 latest posts per taxonomy
- How to add a new column in custom post type list?
- Customize url from the_terms
- Ordering Posts List By Taxonomy Terms?
- Custom Post Type categories at edit post not hierarchical
- Custom taxonomy page template
- How do I put `tax_query` in this WP_query?
- Get posts associated with custom taxonomy alternate way
- Exclude Custom Post Type from shared Custom Taxonomy
- Get custom post type where taxonomy..
- Connecting multiple post types? Or linking “News” posts with “Game” posts how?
- Querying multiple taxonomies in URL leads to wrong taxonomy archive
- How to display elements of different post types?
- WordPress Custom Permalink Structure with Custom Post Type and Taxonomies
- Display a custom post type list by taxonomy term
- Custom taxonomy archive page not routing?
- Only One Post of Custom Post Type Appearing on Template Page
- Code to show related posts (custom post type and custom taxonomy/category) is messing with other code
- register_term_meta not working
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- Problem with shortcode
- WP Query – Can’t get posts with specific taxonomy