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
- Where to put my code: plugin or functions.php?
- How to put custom post types on front page
- How to set a fall back template for a custom post type in a plugin?
- How do I add a custom post type to the Featured Content in twenty fourteen theme?
- Custom Search form not working in localhost
- Saving multiple Metabox contents
- Custom post type loops with different page templates
- Unable to save or update postmeta for custom post type via action using save_post hook
- Message on Custom Posts Type admin page
- Allow Users Access to Custom Post Type Only
- How do you output custom code between posts in the loop?
- How to get Custom Post ID by adding filter to child theme’s function
- How do I create an archive page for standard posts?
- Limit users by custom taxonomy and user roles
- Remove parent from custom post type
- Output custom post shortcode. Help spot the error.
- When ‘is_post_type_archive()’ return true?
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- How To Enable Block Editor (Gutenberg) for Existing Post Type via functions.php
- Modifying Custom Post Type after registration (will it affect content?)
- Create a post in custom post type using field in registration form after users submit form
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Displaying a custom post types custom taxonomy value?
- right_now_content_table_end function not working?
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Query & Order posts by custom fields
- custom taxonamy and post type
- How to target a specific custom post type post and its all children and grandchildren?
- get_post_meta not working on publishing
- ACF field key/value to show on taxonomy list
- Re-registering a custom post type not working (not showing up)
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- CPT archive admin menu label
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Configuring a meta query with multiple post types that have the same relationship on a single page
- Add term to custom post type on draft
- Different Category system needed for the Custom Post Type
- How to specify a template for a path like http://example.com/something?
- Template not working for the custom Post type
- Featured Image field not appearing in Custom post type
- Loop increase number
- ACF in wordpress
- Display custom post using ID
- Change Slug of a Custom Post Type
- Custom post type permalink sends to 404.php
- How to inherit field value from parent post into in child / sub post
- Api rest_route 404 while building filter for custom posts (filtered by multiple meta keys / custom fields)
- how to get this tax_query working?
- Removing full title and breadcrumb header container for a specific post type
- Show current user posts in custom post type query
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- Assign a template to a custom post type when displayed by the main loop on the home page
- If Post type use sidebar (‘tree’)
- Custom post type in Custom widget – $listItem
- Having Issue on Getting Metabox Checkbox Value
- Redirect to URL if x number of days passed
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Conflict in function to allow single post template based on category
- Front end create custom post types
- redirect after submiting post for review
- set object terms after some some time of published post – functions.php
- update custom taxonomy custom fields
- How can I make reusable post types with complex custom field structures?
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- Pagination not working in custom post type. Help
- Urgent – WordPress keeps creating posts
- How to use posts as tabs in a custom page?
- ACF field check value of field on all other articles
- How to get current post type?
- How to convert Post Object Custom Field into Tags
- Stored meta from attachment, video length?
- Duplicate posts in my custom loop
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- Not Able to Get Custom Post Type in Single and Single-custom-post-type
- Featured image in custom post is being disabled
- custom post type does not working when adding in child theme function
- call_user_func_array() error after moving to another server
- Cant insert wrapper div into index.php
- Function that get ACF fields value before saving
- I want to split this into two functions
- Create custom post order (with custom post type meta)
- Change position of Post Formats box?
- Invalid Taxonomy in template
- Add HTML before a specific div?
- Single page for Custom Post Type not found
- Need some hints for my own WP theme development
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- Show custom post type on post category page doesn’t work / breaks navigation
- I want to show a list of post with title that have link goes to that post and icon under the specific category to which it belongs