On our dev site, I'm experiencing issues with WordPress and how it's suddenly handling Media Attachments. When I upload Media (such as an image) inside a post, it's creating another Post (as a Draft) that simply references that media. Also, any changes to that piece of Media (in the Media Library) results in another Post.
For example, let's say I am writing a post about Mark Twain. If I add an image of Tom Sawyer and Huck Finn, it will add it to the post fine. No problem. The issue is when I go back to the Posts Dashboard, I'll see Draft Posts called Huck_Finn & Tom_Sawyer. These will be empty, uncategorized drafts without any content. It also appears to create a new post whenever I modify that piece of Media in the library. For example, if I were to have renamed Huck_Finn and Tom_Sawyer to Huck Finn and Tom Sawyer, I'd see the following in the Posts Dashboard: Huck_Finn, Tom_Sawyer, Huck Finn, Tom Sawyer.
From looking at wp-admin/includes/post.php - line 197, the comment indicates that the parent was forced into existence (via a draft) because the attachment needs the parent to to have a valid id to associate with.
I started deactivating plugins and it looks like it was a problem that was caused by the Content Audit plugin. wordpress.org/extend/plugins/content-audit
Related
This is in a way a followup of this question : Jetpack Publicize: Sharing only on Twitter for a category
I am currently working on a website in which one of the category only serves as a way to curate news on the net and then, share it on the front page and on Twitter.
The post itself is empty, I use a custom field to receive the URL from the user, grab a few things from the target website, update the permalink and save. Upon saving, SNAP publishes the post on Twitter.
My issue is that it is not using the permalink but the url of the post itself (which is absolutely empty). Having a look into the plugin's code, I saw that it was using post metas (most notably urlToUse, snap_MYURL) but couldn't determine if it was a priority issue or something else.
I also try to adjust my code to set these meta values to the url I want, to no avail.
Is there a way I could set my custom functions or the SNAP plugin so that the permalink is used ?
No answer after a week, neither here nor from SNAP's support. No problem.
The ugly patch I used :
Jetpack Publicize for all the Twitter updates
SNAP for the Facebook ones thanks to their ability of posting based on a specific category
It's bloated and I'd love to understand but, sometime, you have to ship
While writing new blog posts I occasionally hit keywords, that I want to write an other post in the future about. The post didn't exist right now, but creating a link (or anything that will become a link later) while writing the post, would make it a lot easier to reference to the future post than adding links later manually when the new post really exists.
I already thought about using drafts for this scenario and just create an empty post, but I couldn't find a plugin for displaying conditional invisible links to draft and visible links to finally published posts.
Any ideas how to address this issue?
I'm trying to put the FB comments box on the bottom of each of my products pages on my site. I have managed to do this but when set to a static url it says the same comments on every product. I deleted the url and now it kind of works but says the plugin is in compatabilty mode.
Heres whats in my products template:
My site is trickscooter.co.uk so you can see. The comments box is at the bottom of every product.
I want people to be able to ask questions on the item shown so I can answer them so all can see.
PS - It says this:
Warning: this comments plugin is operating in compatibility mode, but has no posts yet. Consider specifying an explicit 'href' as suggested in the comments plugin documentation to take advantage of all plugin features.
Thanks !
The static URL won't do for the 'href' parameter as that parameter tells Facebook which comments to show. If you always use the same URL, of course you get always the same comments. You should have a unique url per product and use that dynamically.
If you generate the href parameter dynamically, you need to be aware that you will loose comments if your page is accessible under different domains.
The best way is to configure a 'facebook domain' (e.g. 'www.foo.example') and use that to generate your href attribute for Facebook comments.
If I misunderstood you please explain your current embedding code and what you tried. If you like the answer, please mark it as 'solution'.
Can a post be hidden from home page, archive view, category lists etc. and viewable only if you have a direct link to it? The blog doesn't have registered readers and is open to public so that would be a mean of hiding some posts from public view without using the password protection.
I asked this question in Wordpress section and the idea there was to use conditional code so I'm asking the question here as well to get closer to the code.
If I used conditioning, would I have to input each post's ID separately to PHP file for archive, categories, search and such?
EDIT:
After reading a bit more all over, I had an idea of creating a private category and then use some kind of conditioning so that posts from that category are hidden. According to Codex, certain category can be hidden from, for example front page but I don't know if there's a way to hide it altogether except when you have a direct link.
Creating a "Private" category is a good solution. It is quite possible to hide this category altogether except via direct link. You just have to "block all the exits" with conditional code.
The default WordPress theme displays posts via the Post Loop. See http://codex.wordpress.org/The_Loop, especially the section entitled "Exclude Posts from Some Category". Just find all the places in your theme's PHP files (e.g. index.php) where this loop is used, and add the conditional code. You'd also need to filter your category list and blog archives in the side menu. Don't add filtering in single.php, otherwise the private post won't display on its own page.
You'd probably want to add a similar condition to filter search results so that private posts aren't leaked via the blog's search tool. There may be more "exits" I haven't thought of, but I'll be sure to update as I do. I'm glad to look at specific code if you so desire.
Understanding WordPress' post query and loop really opens up a world of possibilities for customization.
I found the simplest way - just use Simply Exclude Wordpress plugin. It has the option to exclude each post (or tag, for that matter) from front page, archive, search or feed. It works flawlessly. You can still view the posts by using direct links.
(Not actually an answer that includes code but a working solution nonetheless.)
I am using wordpress for a website. It's in development i do not have a link to it atm.
My customer would like to have his wife edit/correct the pages he writes, because he's dyslexic.
For new pages, it is simple: just save the page as a draft. Wife can log in and edit, visitors cannot see the page yet.
For existing pages, i don't know how to so that. Is it possible to
- change an existing page AND
- keep the existing page visible for visitors AND
- hide the updated page from visitors (keep it as draft)?
I prefer having a plugin/mod/extension that does this, but else i'll code it myself.
Thanks for your time.
Kim
Check out the Revisionary WP Plugin:
http://wordpress.org/extend/plugins/revisionary/
It creates a new user type: revisor who can suggest edits to existing pages that must be approved by an Admin or Editor, and also allows Admins and Editors to create draft copies of existing content to be published later.
This question has recently been discussed over at wordpress.se.com: https://wordpress.stackexchange.com/questions/3986/is-there-any-way-to-draft-a-revision-of-a-published-page-or-post-what-workaround
Unfortunately, there's currently no solution for it but to save the draft as a new page. According to the linked discussion it's possible to make a button that saves as draft, but you'd have to develop the plugin yourself.
If you click on "quick edit" in your page list, it will then give you the drop-down menu to change it to a draft. Took me a while to figure that out.
You can use duplicate post plugin. With the help of this plugin you can clone wordpress posts or pages easily.
Here is the link : http://wordpress.org/plugins/duplicate-post/
Revisionary is getting a bit old and buggy now, I'm finding "BU Versions" by Boston University a better alternative and looks to do what you wish.
It's not a very clean solution, but cut and paste from the published page into a new draft, call it "Draft of..." and keep it a draft for editing. When the editing is complete, cut and paste into the published page and update, then delete the draft.