Replace the above mytheme_render_infinite_scroll
function with this:
function mytheme_render_infinite_scroll() {
while ( have_posts() ) : the_post();
if ('mytheme_portfolio' == get_post_type()) :
get_template_part( 'content', 'archive-portfolio' );
else :
get_template_part( 'content', get_post_format() );
endif;
endwhile;
}
Related Posts:
- Exclude Post Type from Jetpack Infinite Scroll
- Jetpack Infinite Scroll won’t fire [closed]
- Get Post ID by Content
- Remove tinyMCE from admin and replace with textarea
- How do I create new content pages for my Custom Post Type?
- Custom post metadata not appearing in public API
- What is the impact if i ignore title and content in my custom post types CPT?
- WordPress theme options vs custom post types
- Best way to save horoscope data
- How can you use one database with multisite
- Redirect to another page using contact form 7? [closed]
- Remove “show sharing buttons” metabox Jetpack from custom post type
- get parent content inside child posts
- Adding Template Post Content
- How should I structure complex content hierarchies?
- WordPress general content best pratices
- php dynamic content inside shortcode
- How might I change the destination of a link?
- Register CPT if Jetpack Portfolio is not active and only once
- Infinite scroll doesnt work
- How to use TOC with ACF?
- Expandable WordPress content (text) inside a post
- Gravity forms multiple posts generated by one form [closed]
- Why are previous_post_link/next_post_link skipping some posts?
- Add tags to custom post type without menu link
- Display custom taxonomy on my custom post type
- List Categories (wp_terms) and count posts
- Post loop count is not in order
- Gravity forms how to display list of submitters on the post submitted page [closed]
- Add Previous/Next Buttons to CPT Single Pages Only
- Problem with $post_id object’s property
- get_post_types is not showing all registered posts
- How To Display A List Of CPT Posts In A Meta Box On Menus Page?
- Control content before and after custom post type loop
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- Custom post doesn’t show featured image
- Showing custom post type categories in the menu
- Displaying custom post types by category
- How to setup a single post page for my custom post type?
- Disable custom taxonomy on admin bar
- Conflict between Capabilities and Menu Visibility with Custom Post Types
- Custom Post not working as expected
- How to use a variable as a function name?
- What do the numbers mean at the end of add_action(‘save_post’)…?
- How to use next_posts_link/previous_posts_link for custom post types paginate?
- Getting WordPress Flexslider Item Number
- Designing a custom post type with a minimum number of meta fields
- Why does my taxonomy have a category style div id?
- Sorting posts by custom field value in array
- Custom post type paging 404 error
- Targeting categories in custom fields
- Display Only Certain Category In a Custom Page Template
- Saving Meta Data within Custom Post Type
- A meta box (in a custom post type) with two different type of fields
- Redirect to first child on Custom Post Type (without template)
- Assign CPT archive page attributes
- Move content between custom post types
- Custom post types problem
- How to get postname in custom page?
- Query custom post type based on post id and custom field value
- Pods CMS: How to add custom column to Adnvanced Content Type
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Creating Sections for Post Types
- Give each post type label a different color?
- page not found for single-type.php file
- Show list of custom posts with respective attachments?
- How to output an image or icon for selected check box in a custom post
- Check IF single OR multiple custom data has been entered
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- How To Get Custom Post Type Category Title
- populate array with posts
- Displaying tags associated with posts in Custom Post Type
- Display custom posts randomly in custom taxonomy archive
- Using custom post type as taxonomy
- Transferring data to the end of a transaction with the Shopp Plugin
- Listing custom post types on archive page with array
- get_pagination not working on a custom post type query (using WP_Query)
- Show Posts to Author Only
- How to Make infinite loop of post
- Get custom post type categories to show up in menus
- WP_Query parameter conflict
- Create a comments template for custom post types
- Is it possible to add posts and images (auto resize) for custom post types with a script?
- wysiwyg editor don´t export paragraph
- Add custom attributes to a post
- Custom Type add Transitions
- How to make a meta box?
- Retrieving meta-box from a custom-post-type
- Cannot save Custom Post Type meta data
- Custom taxonomy page returns 404
- Custom post type permalink sends to 404.php
- Running a wordpress action when a custom post type term (taxonomy category) is changed
- Custom post types with categories in template
- portfolio custom type tags support
- Custom Post Type conflicting with page?
- How to check if post/page or taxonomy post is published by admin
- How can I create an automatic drop down menu with my tags?
- Custom database table question
- previous_post_link in same taxonomy in custom post type
- Getting all ID’s matching a title in a custom post type