Adding another column wouldn’t break the code at all .. but it might create issues while updating WordPress to a new version ..
It’s better to add another table having fields (ID
PK Auto Increment, post_id
FK, <your-custom-column>
) .. the post_id
field will point to ID
field in wp_posts
table as a foreign key!
Related Posts:
- Right way to store a large set of similar information on website? [duplicate]
- Remove slug from custom post type post URLs
- How to get post content by calling ajax?
- Get category id from post id of a custom post type
- Limit widget to a specific registered sidebar
- WP_List_Table Inside Metabox Not Working on Submit
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- Add metabox with media uploader in a custom post type [duplicate]
- Create Post tabs in single-{content-type}.php with Custom Field values
- Showing current taxonomy terms
- Newer/Older posts links display same posts on every page
- automatically create taxonomy with same name as post title
- custom sortable column
- Wp-query causing problems with the_content();
- saving custom post type data to different table in wordpress
- Display “Post 2 of 4” on single post page?
- Query post types with multiple keys
- update a post meta from a single table cell TablePress
- How to embed form data within the ‘Add new post’
- Missing the first 6 Posts and displaying posts that are after the latest 6
- When viewing single parent post, display list of children
- Limit Authors to their Own Posts on front-end excluding admins
- Remove Post Page “View Post” Link
- Get all posts WHERE custom_field is LIKE value
- Post type hierarchy
- How to make post sticky in the admin page?
- Loop on front-page.php
- How to create custom boxes with text inside?
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- Disable block with taxonomies at post page
- Which post does a taxonomy term belongs to?
- Changing custom type name hides the posts
- Display Ad on Specific Categories
- Add custom field to Posts and sort by it
- Two Custom Post Types Many to Many Relationship
- Problem with displaying posts in the CPT category
- How to change the post type a theme shows by default?
- No Permission to add new Page, Post or CPT with Admin role
- Update postmeta Parent when post_status child change
- Changing default ‘posts’ parameters with register_post_type_args
- 2 Different Custom Post Types in Submenu
- How to assign classes to all elements?
- Check post on publish for blank title
- Different Limit number of post on different archive page
- How to change “post_class()” for a custom post type?
- Reworking function for counting custom post type posts count
- help
- Get an array wich contains the post_name of every post that has the custom post_type “pelicula”
- Custom post types and ‘new WP_Query’
- Showing custom post type categories in the menu
- I can no longer post or even save a draft, getting the error “A post type mismatch has been detected.”
- Dynamic pages for linked categories and content
- Separate Content from gallery (custom post type)
- Get post format
- How to set the mainpage of a custom post type?
- displaying content of custom post type
- Template code to split a post and print a custom field?
- How to query Posts from a custom post type which contains a custom taxonomy?
- Custom Post type registering as page post type
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- Does “Custom Post Type” can have page hierarhy option?
- How to: Add a publish immediately button when editing custom WordPress posts?
- How set template for “custom post type” individual post
- Extending post by email
- Checking for custom field in admin pages
- A sports wordpress website
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Settings -> Reading -> Posts Page ->Blog — is not working in my website
- Is it possible to get the specific content on the search page?
- Best way to fix bad count on All | Mine | Published
- How to mass get post editor URLs
- How to create additional rendering for custom post types?
- SELECT custom post type and its meta in SQL
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- How do I insert a custom post type query after a certain number of recent posts and then resume recent posts?
- How to create editable sections in wordpress?
- Instructor can view, edit, delete only theirs courses
- How to add custom PHP code in post header?
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- subtracting the current post form then whole loop, which is generating all CPT titles
- Assign for all post of a post type a specific single-post template
- Widget area for individual posts (custom post type)?
- When post is Published, insert into custom table a number – custom post type
- update a posts of other custom post type
- Show custom post type under last posts configuration
- Custom Post Type used for FAQs Accordion
- How to Associate Posts with Pages
- delete custom post type using a submit form
- Why are my wp urls showing page not found?
- Post content stays the same but permalink changes ?
- Can I set a CPT title field to a dropdown with preset options if user is of a given type?
- Styling first post using Advanced Custom Fields
- How do I display the index position of a post from a custom post type?
- How to call wordpress custom post type page
- How to filter homepage posts by popularity? [closed]
- Automatically add custom taxonomy when meta value gets to a set number or beyond
- How to make a non-public post on wordpress approval?
- How Do I Add a Custom Post Type URL to Content?
- is therer any wordpress function to retrieve a specific html element from post content
- Post content in bootstrap modal