Replies
Hi Brajesh,
I’m not sure what happened but today it’s all working! maybe I forgot to save my edit before transferring it to the server? I’m not sure. But anyway, issue resolved.
- Venutius on January 11, 2018 at 12:42 am in reply to: [Resolved] Adding a gallery automatically on post creation #12819
Sure, and thanks again for your help
- Venutius on January 11, 2018 at 12:34 am in reply to: [Resolved] Adding a gallery automatically on post creation #12816
It works pretty well with Simple Front End Post, I was expecting a problem, but if the user enters a post with a duplicate title it takes them to the backend edit post page and gives them the message that they can’t post with the duplicate title. That’s a lot better than I was expecting. In an ideal world it would flash a warning while the user was creating the post in the front end but that’s probably for another day.
- Venutius on January 11, 2018 at 12:24 am in reply to: [Resolved] Adding a gallery automatically on post creation #12815
Here’s the link to my new plugin. A simple one to start me off – https://wordpress.org/plugins/avoid-duplicate-titles/
- Venutius on January 10, 2018 at 8:48 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12811
That fixed it Brajesh, thanks for that, is the $typenow variable a bit hit and miss?
By the way, my new plugin’s been accepted in the WordPress directory, I’m very pleased to see it listed.
- Venutius on January 10, 2018 at 8:26 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12806This reply has been marked as private.
- Venutius on January 10, 2018 at 8:06 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12802
I wrapped the update_post_meta commands in a check to make sure the post type was my type but that did not work.
- Venutius on January 10, 2018 at 8:04 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12801This reply has been marked as private.
- Venutius on January 10, 2018 at 7:39 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12796
No that’s not it but it’s something like that, I think I need to add a check to make sure the custom fields are only being added to the post type of my custom post type, and not yours.
- Venutius on January 10, 2018 at 7:26 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12795
I’ve got a few different files of code so that might get a little complex.
What I’m thinking is that it’s because I’m effectively creating two psts at once, my own custom post type and your gallery post. It might be as simple as moving when I load the mpp actions file, let me check.