You can create a custom post type for the logos as shown below,
function create_post_type() {
register_post_type( 'logo',
array(
'labels' => array(
'name' => __( 'Logos' ),
'singular_name' => __( 'Logo' ),
'add_new' => __( 'Add New' ),
'add_new_item' => __( 'Add New Logo' ),
'featured_image' => __( 'Add Image' ),
'edit_item' => __( 'Edit Logo' )
),
'public' => true,
'menu_icon' => 'dashicons-images-alt2',
'has_archive' => true,
'rewrite' => array('slug' => 'logo'),
'supports' => array('title','thumbnail'),
)
);
}
add_action( 'init', 'create_post_type' );
Add the above code in your theme’s functions.php file.
Then you replace your static logos with post loop.
Related Posts:
- Multiple Content Block
- What’s the difference between same wp functions get_posts(); functions in different form?
- Warning: Invalid argument supplied for foreach() [closed]
- Custom post type isn’t working
- Warning: Invalid argument supplied for foreach() in post.php [closed]
- Custom post type’s posts are not showing anywere but in xml sitemap
- Custom meta box in custom post type not working
- Problem with multi checkboxes value in metabox?
- How To Display Category list from Portfolio post type plugin?
- Query custom post type and showing its content
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Custom Taxonomy Permalinks Redirection
- Add custom column in custom post type edit page
- wp_insert_post generates endless posts
- Remove standard meta boxes from custom taxonomy
- I did group my search results by post type, but how can i give each of them its own order?
- Dequeue scripts and styles only for specific custom post type
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- Function to display custom post type on front page makes menu items dissapear
- custom post type not showing in menu
- Show category ID on custom post type
- What template files do I need to customise custom-category-term-links rather than fall back on archive.php?
- How to customize a permalink (URL) structure?
- Custom Post Type with Templates using Meta Boxes?
- Can I list a custom post type within another custom post type in the admin area?
- Change custom post type slug from plugin options
- Get term name and term parent into custom post type permalink
- Can’t edit custom post type
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Help need making decision. Ads rotating site on wordpress
- Query & Order posts by custom fields
- Set URL link to featured image of custom post type
- custom taxonamy and post type
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Change CPT archive title
- AJAX load more for different custom post type loops
- PHP variable not regenerating when publishing multiple posts at the same time
- On update or create post redirect to current post position in list
- I need to add endpoint for wordpress categories
- Return the latest post from a custom Taxonomy and Post Type
- Don’t know how to show custom taxonomies from a custom post_type
- How to target a specific custom post type post and its all children and grandchildren?
- Featured image overlay when changing post status
- get_post_meta not working on publishing
- Not Able to Get Custom Post Type Gallery Images URL
- JS innerhtml changing style when using AJAX
- Redirect 404 page with ID in slug to associated page with same ID in slug
- WordPress wrapped added a span tag to every single p tag
- ACF field key/value to show on taxonomy list
- Re-registering a custom post type not working (not showing up)
- Display featured image from one CPT within another CPT query
- Query taxonomy of taxonomy of custom post type
- Best way to style first post differently?
- How to make custom posts types display when published for the future
- Display a grid of taxonomy terms at root taxonomy page
- How to rewrite url for any specific taxonomy?
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- How to change the post type a theme shows by default?
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- create a new page from a custom post type similar to an authors page
- CPT archive admin menu label
- Anon function and add_meta_box
- Hide a widget inside a div on specific type of post
- Event Custom Post Type Title show by upcoming Event Dates
- Shortcode not working with post counter
- How to have this permalink structure: post_type/postname/custom_inner_page
- Changing default ‘posts’ parameters with register_post_type_args
- Building a Treatments Page, What Do I Use?
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Cannot save CPT meta box
- Allow users to create posts without logging in?
- How to change permalink to include custom post type
- Configuring a meta query with multiple post types that have the same relationship on a single page
- Custom post types and category archive
- Add term to custom post type on draft
- How to assign classes to all elements?
- next_/previous_post_link() `in_same_category` appears to fail when true
- custom comments form for custom post type
- How to produce a sub-page-system in WordPress
- Want to be able to sign up subscribers as authors
- Load scripts based on post type
- WebP Fallback for Inline Background Image in Style Attribute
- Different Category system needed for the Custom Post Type
- How to specify a template for a path like http://example.com/something?
- Global custom meta box
- Redirect to another page using contact form 7? [closed]
- Template not working for the custom Post type
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- categories should be available across all custom post types
- Featured Image field not appearing in Custom post type
- Post-thumbnail only for specific post-types?
- custom post type metaboxes not saving
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- How can i link a custom post type thumbnail to intermediate size
- Enable taxonomies by post type in an array of CPTs
- i cant see the max_num_pages of a custom wp query
- PHP question: how to combine syntax?
- Archieve.php not loading for custom post type
- Getting Un Wanted Gallery Shortcode In The Page on Loop