jack
jack
A Remaining Problem with Title-less Posts jack.baty.net
|
Embed
hjertnes
hjertnes

@jack I insert a "#" when the title is null in my cms to avoid this problem

|
Embed
oyam
oyam

@jack depends on the generator. My archive template goes “if title is blank, strip tags from content, grab first 180 words”

|
Embed
philbowell
philbowell

@jack I set the date and time as a post title if I don’t set one. When I get around to doing an archive page I will probably exclude them from it so it becomes an article archive.

|
Embed
jack
jack

@oyam This is how I’d do it. I was hoping it wouldn’t require any WordPress jiggery pokery but no such luck as far as I can tell.

|
Embed
In reply to
tgray
tgray

@jack You could always switch your micro blog over to Hugo...

|
Embed
jack
jack

@tgray I did that as part of my “main” blog, which is Hugo, for a while. Some days it seems like a great idea but then I fall for the ease of WordPress and around it goes.

|
Embed
tgray
tgray

@jack ahh but if you install nanopub you can post to your micro.blog from any micro.blog client. I have it set up as its own Hugo install on a server which is aliased into my site structure as a subdirectory. When a new post is made I have incrond run Hugo to generate the micro.blog portion.

|
Embed
smokey
smokey

@jack I’d consider that a bug in whichever theme you’re using, since that display behavior is defined by the theme.

Depending on how the theme’s archive page works, it might be fairly simple to fix (e.g., TwentyFifteen’s archive.php delegates the display of posts in the archive to content-postformat.php files, so if all your titleless posts are say, status format, you could add a content-status.php that does the right thing).

My first step would still be to report it as a bug to the theme’s author, though. I’d think listing titleless posts on archive page should, well, display something that lets you access the post :-P

|
Embed
jack
jack

@smokey I'm using the simple-yearly-archive plugin, so I ended up making a child theme and hooking into that with a custom function. Seems to work. I am going to suggest the author accounts for this, though.

|
Embed