Force post ID to be slug - wordpress

I'm using a heavily custom theme that uses needs custom permalinks to be in this format:
/%category/%postname%/
but, i want my permalinks to be in this
/%category/%post_id%/
Is there a way to force the %post_id% to be set as slug without changing anything in the Permalinks Settings?
** To explain this a bit more, my client wants to keep the title of a post in the admin, but he wants it visible only in the admin. So what i need is to keep the titles of the post and force the post_id to be the slug

Go to Dashboard->Settings->Permalink
In custom structure use /%post_id%/
and save it

Related

Disable Yoast SEO on custom post type for specific user role

I've made a custom post type, where I want different users to only edit their posts. I've made some restrictions regarding their capabilities on the site and the posts - I don't want them to be able to edit anything other than a few textinputs and such.
For some reason I can't find a way to disable the Yoast SEO metabox on the posts - I've checked Yoast's own doc, but I haven't been able find anything regarding this besides using a plugin called User Role Editor, which doesn't work the way I need.
I've tried the snippet from this place, but it doesn't seem to work either.
TL;DR: Remove Yoast SEO on custom post type for a specific user.
You can use ADMIN MENU EDITOR PRO Plugin
With this plugin, you can choose every parts you want to display by user role in the admin.
This si the simple method.

Parent permalink slug before CPT slug

I'm currently busy making a FAQ for my website but i'm struggling with the permalink structure.
I have made a regular page where people can see an overview of the FAQs. I called that page Klantadvies.
I installed a Custom Post Type plugin and made a post type called faq. I also made a taxonomy which is called onderwerp.
Unfortunately the plugin won't allow me to have a page parent in the slug. So i'm wondering if it's possible to have my page slug (klantadvies) in front of the custom post type slug. For example:
http://mypage.com/klantadvies/faq/onderwerp
Thnx in advance!
Rather than using a plugin for your post types and taxonomies, I'd recommend you use these two solutions:
https://generatewp.com/post-type/
https://generatewp.com/taxonomy/
You can use those to create your Post Type and Taxonomies. Within each of those configs you're allowed to setup the slugs / URL structure that you want to use.
On top of that you're going to need to setup a custom rewrite rule to handle echoing out the values you're looking for on the appropriate layout.
https://codex.wordpress.org/Rewrite_API/add_rewrite_rule

How can I change a wordpress custom post back to a standard post?

I have inherited a legacy wordpress installation which has a complex template with a couple of custom post types.
I want to migrate it to a simpler theme and convert all the custom post types back to regular posts.
I have gone into the wp_posts table and changed the values in the post_type column from "product" or "service" or whatever back to "post" and the posts in question now load into the template, but they don't show up in the list of posts in the admin page. If I load the editor on another post, and change the ID in the url bar to one of my would-be normal posts, they will load up and I can edit them, but I just can't make them show up in the posts list.
Is there somewhere else I need to change things to make Wordpress see them as standard posts?

Wordpress author name hiding

I have created a website and Now I want to write a post. The website managed by wordpress.org. The problem is, in the published page, the my email is showing on the page as author. How to hide this?
Actually I want the remove the mail from the post :
Humm, when you say hosted, is it fair to assume that you are using a hosted version or wordpress? If so, you should be able to tweak the display of your posts in your wordpress settings. For my theme, I can twiddle whether or not an author tag appears in a blog post by going to theme options > blog page. Your mileage may vary depending on your theme.
If your theme does not let you turn off the author tag, you may want to just change your name to something other than your email address. If I want a name to appear rather than an email address, I can set a displayable name in the wordpress user settings. I just edit the user to include a name string.
Does that help?

Adding custom user options to wordpress

I am trying to add a custom field to the wordpress user profile page. For instance if I wanted to add a field where the user could put in their Linkedin, or Twitter user name, then use that value whenever the user posts a comment, or if the user is an author, to add that value in their posts.
I have a forum (bbpress) integrated so I would also like to use this value to customize the users avatar in the forums.
I am looking at the way Wordpress uses Gravatar. I would like to do something similar. However, I'm not sure where to start. I've written a couple of shortcode plugins in the past, but nothing this complicated.
Anyone have any ideas on where I should begin on this?
look at this post and this

Resources