Is there a way to make it so that the user cannot delete certain
things inside posts content?
You need…
- A shortcode that will generate the content. This will let your users
provide input but the markup can be rigidly controlled. - Or a custom meta field. The markup around this can also be rigidly
controlled, but to a lesser extent, or in a different way. - Or you need to write the markup into the templates.
I can’t tell you exactly which you need. I’m not sure. I think the shortcode, or a group of shortcodes, might do what you need.
Related Posts:
- Add default content to post (for specific category)
- How to wrap every image in a post with a div?
- Paragraphs removed when using get_post_custom()?
- Benefits to using semantic HTML in post content? [closed]
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Adding div to WordPress page content
- Add default content to post (for specific category)
- Notify/check if the content of a custom gutenberg block has changed on save_post
- Where does WordPress store the users customization in the theme
- Add a checkbox to post screen that adds a class to the title
- Attach pdf file to custom post type
- HTML code in Custom field
- Static posts page with home.php
- Delete Post Link to delete post, its meta and attachments
- Programmatically inserting page breaks
- Add custom field to category of custom post type
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Add custom fields to post programmatically
- user contributed content as custom post types
- Same content shared between multiple posts?
- Remove custom posts that match taxonomy value
- Custom Theme Want To Remove One Category From All Displays
- Post Type Label Name
- wp_query ‘s’ parameter does not work with custom post type
- Add scripts on custom post add/edit pages Not Working
- Blog Posts in Custom Menu
- How to display data in archive page?
- Set terms in a custom post
- Ajax Dynamic Archives not showing correct results
- Move first half of posts to one parent page, second half to the other page
- Custom Post Type – Category Rewrite – Remove Rewrite from Sitemap
- CPT archive redirects to single post
- Prevent Delete Attachment by URL or When Submit
- Enable Comments Box On Custom Post Type
- Turn On Comments On Custom Post Types in Directory Theme
- Duplicate Custom Post Type and Taxonomy Slug
- Calling Different Custom Post Timestamps in a table
- Admin – create custom post status and display above table
- How to allow visitors to filter posts by multiple taxonomies
- How to create new post content templates for my users?
- How to include my own css in post
- How to get a post’s content? [closed]
- Why does a published post only displays the title and not the content in the site? [closed]
- a little direction on custom post type
- How safe is it to delete old posts edits to save database space?
- The_excerpt() doesn’t parse – how to change that?
- Divs appearing everywhere in post content
- Is codex right on deleting post?
- How to get different Related Posts
- Custom home page with full post for first one only
- l accidentally permanently deleted a Draft. There’s any way I can recover it?
- Inserting an example of the last 3 post on to the homepage
- Can’t save WordPress post with “/etc/” in it
- Can WordPress handle following functionalities?
- Get a term each custom post type
- Getting post and attached image from subdomain
- Trying to exclude custom posts based on date, while sorting by custom field
- Help on conditional statement to accompany wp_insert_post function please?
- Alt text attributes not showing over portfolio images
- Related post not showing table of content
- Adding an option to post editor to show a site disclaimer or message
- Search results for ACF data
- WordPress Recent Post with the badge “New” on the side of the title post
- Redirect to custom post if custom archive page has just one result?
- Added a ACF field to custom page and want the results to show as a column in admin
- Multiple posts in one page
- delete post hook not being fired when deling in wordpress dashboard admin
- WordPress Delete Users from backend doesn’t work
- Is it possible to make a custom post that adds multiple pages?
- Loop through taxonomies and loop through their terms (Newbie question)
- Custom post styling per category?
- Custom post type – Loop out in random order but same 15 to appear first… still random
- Custom post type template not called
- How to use Categories of custom post type
- Static text above category page
- Hook To Get All Posts Deleted
- Meta boxes not saving
- Custom URL Structure for posts with subcategories
- Help with a function that will place a map pin for all posts
- How to show the posts list into a static page? Problems to use the loop into a static page
- Multiple approval from editors before publishing?
- Get new post meta data when (custom) post is saved
- Allow users to create their own page/s
- 404 for some custom taxonomy not ALL taxonomy
- Given two custom post types: Automatically add meta fields from one custom post type to another
- Display metabox with date
- Get part of a page url
- How can i retrive the movies, trailers, news in a single page using search
- How to use wp_editor(); in functions.php then retrieve content in the template
- get post custom value
- WordPress strips some attributes for author posts
- Display one post randomly from category on home page
- Deleting first four characters from all Post Titles
- Deleling wordpress posts permanently still have IDs
- Post’s arent displaying
- Can I get custom post items in select box (dropdown)
- How to have 2 posting pages on a blog
- Dynamic Menu Item
- Changes done in admin panel are taking time to reflect in the REST api responses
- I have a website issue I am trying to resolve