Changing post formats when theme doesn’t support them
-
A couple of my posts have mysteriously been marked as being in quote format, but the theme I use doesn’t support post formats, and so the editor does not provide any way for me to remove that erroneous information. How can I fix the problem?
The blog I need help with is: (visible only to logged in users)
-
Hi there,
It’s possible that the editor might be auto-setting a post format based on the post content, but it shouldn’t be setting a format that’s not supported by your theme.
Are you using the editor at My Sites, the WP-Admin editor, or the new block editor to create your posts, and can you please give links to a few posts where this has happened so we can take a look?
-
I believe that the faulty setting was for posts initially created with Press This (which starts a totally useless editor), then further edited with the editor started from WP-Admin.
<a href=”https://gasstationwithoutpumps.wordpress.com/2018/12/01/loud-restaurants/
“>https://gasstationwithoutpumps.wordpress.com/2018/12/01/loud-restaurants/
<a href=”https://gasstationwithoutpumps.wordpress.com/2018/10/06/cabrillo-grant-for-hispanics-in-cs/
“>https://gasstationwithoutpumps.wordpress.com/2018/10/06/cabrillo-grant-for-hispanics-in-cs/are the only two posts I have in “Quote” format, which my theme does not support. (I use an old theme that does not know about post formats.)
-
@ gasstationwithoutpumps ah, that kind of makes sense. A few questions:
– Where is it showing up as a quote format? I can see it in the source code, but I’m wondering if it’s messing up the display on your site. If you can take a screenshot and upload it to your media library, that will be helpful.
– Are you using the current version of Press This? https://en.support.wordpress.com/press-this/
-
The “quote format” only appears in the listing of posts from https://gasstationwithoutpumps.wordpress.com/wp-admin/edit.php
I’m using a bookmarklet for “Press This”, but I don’t remember when I set it up, so I have no idea what version I’m using. Here is the code for the bookmarklet:
javascript:( function pressThis(postURL)%7Bvar doc%3Ddocument%3Bvar win%3Dwindow%3Bvar winGetSel%3Dwin.getSelection%3Bvar docGetSel%3Ddoc.getSelection%3Bvar docSel%3Ddoc.selection%3Bvar loc%3Ddoc.location%3Bvar sel%3Dvoid 0%3Bif(winGetSel)%7Bsel%3DwinGetSel()%7Delse if(docGetSel)%7Bsel%3DdocGetSel()%7Delse%7Bsel%3DdocSel%3FdocSel.createRange().text:0%7Dvar url%3DpostURL%2B”%3Furl%3D”%2BencodeURIComponent(loc.href)%2B”%26title%3D”%2BencodeURIComponent(doc.title)%2B”%26text%3D”%2BencodeURIComponent(sel)%2B”%26v%3D5″%3Bvar redirect%3Dfunction redirect()%7Bif(!win.open(url,”t”,”toolbar%3D0,resizable%3D1,scrollbars%3D1,status%3D1,width%3D660,height%3D570″))%7Bloc.href%3Durl%7D%7D%3Bif(/Firefox/.test(navigator.userAgent))%7BsetTimeout(redirect,0)%7Delse%7Bredirect()%7Dvoid 0%7D )( %27https://wordpress.com/post/gasstationwithoutpumps.wordpress.com%27 )
I don’t see anything there that sets the format of the post, so that must be something that WordPress.com does (inappropriately in this case).
-
Okay. You can keep using that version as long as it’s working, more or less, for you.
I did notice the last two posts had blockquotes in them. Are you pasting those or formatting them, or how is that working? If you’re editing afterward, I assume you’re using wp-admin?
Not sure yet if that’s influencing things, I’m just digging for steps to duplicate this. Unfortunately your version of Press This isn’t working for me and I understand the current version isn’t working with the newer editor yet, so it may be tricky to duplicate.
But the good news is that if it’s showing as quotes in wp-admin, and your theme doesn’t support quotes, it shouldn’t affect the display on your site at all, for what that’s worth.
-
What Press This used to do (and still should) was to start a new post with a block quote of the selected text and a link, that I could then edit. It still does that, but apparently also gratuitously tosses in “quote” format, which I can’t then get rid of. The Quick-Edit from the list of posts should allow changing formats, but doesn’t.
I’d really like for “Press This” to start with the standard editor (the one accessed from wp-admin, not the one from “edit this” nor the one that it actually brings up—why so many different editors???) and not to have set any formats for the post.
-
It still does that, but apparently also gratuitously tosses in “quote” format, which I can’t then get rid of.
This is intentional – posts created using Press This will always be set to the quote format. If your theme doesn’t support the quote format it will make no difference to how the post is displayed, but the post will be set to that format in the database.
If your theme doesn’t support post formats at all, you also won’t be able to change it after the fact unless you switch to a theme that does.
The Quick-Edit from the list of posts should allow changing formats, but doesn’t.
I agree this would be handy, but it looks like that option was intentionally removed from the WordPress software in 2013 already:
https://core.trac.wordpress.org/ticket/23426
In order for such an option to exist on WordPress.com it needs to exist in the WordPress software itself, and it’s unlikely to be added back there.
I’d really like for “Press This” to start with the standard editor (the one accessed from wp-admin, not the one from “edit this” nor the one that it actually brings up—why so many different editors???) and not to have set any formats for the post.
Press This is a very old feature that used to be built into the WordPress software. It was actually removed from WordPress completely last year – the Press This you still see on WordPress.com is essentially a hack we made to ensure it will still work on WordPress.com, and it’s unlikely that it will be changed to use the main WordPress editor as that would require essentially writing a new feature from scratch. And there’s simply not enough people that use Press This for such a significant redesign to be viable.
- The topic ‘Changing post formats when theme doesn’t support them’ is closed to new replies.