#wordpress 2023-01-16

2023-01-16 UTC
#
GWG
Is it inside the h-entry or outside of it?
dronerdud joined the channel
#
starrwulfe[m]
That’s odd. Then again I have too many showing !
#
GWG
But, think of it as a hierarchy.
#
GWG
On a single post, the h-entry should surround every other property. Then inside that, you have the author property with the h-card, the content, the publish date, etc
#
GWG
There is another method where the h-card is a top-level property along with the h-entry. Most post-processors interpret a single h-entry with the u-url of the page and a single h-card on the same page, which doesn't have the u-url of the page as the author.
#
[TMichelleMoore]
@gwg++ It’s in the footer. That is exactly what the problem is. Thank you!
#
Loqi
@gwg has 9 karma in this channel over the last year (60 in all channels)
#
GWG
[TMichelleMoore]: It can be in the footer, if it is marked up the way I mentioned
jsbach joined the channel
#
[TMichelleMoore]
@gwg I’m not sure how to do the second thing. But Adding it to single template fixed the issue!! Thank you!
#
starrwulfe[m]
Which template are you modifying [TMichelleMoore]?
#
starrwulfe[m]
Thinking about looking for a really minimalist template at some point and just adding a microformats child theme in there
#
GWG
Tell me I can help.
#
[TMichelleMoore]
@starwulfe[m] The “single” template. I am using the Twenty Twenty Three theme.
#
GWG
I only know how to write classic themes, unfortunately.
#
starrwulfe[m]
Should I attempt to use blocks and mark up a theme 🤔
#
GWG
starrwulfe[m]: If there is anything I can look at, I will try. Accepting it isn't my area of expertise.
#
GWG
Still willing to look
#
starrwulfe[m]
Well two or three sets of eyes on it are better than one so that works for me.
#
starrwulfe[m]
Can always experiment a bit then put things back to normal since it’s a theme I suppose.
doug_c_im joined the channel
#
[TMichelleMoore]
@starwulfe[m] Make your life easy…do a backup first. :-)
#
starrwulfe[m]
Of course! I’ve learned my lesson
doug_c_im, starrwulfe, [aciccarello], RayManD, RasAlGhoul, gRegor, jsbach and dronerdud joined the channel
#
dronerdud
I need help with a wp_login action... I dressed the script down completely but cannot get it to trigger (I get nothing in the console). Please see: https://pastebin.pl/view/28056687
#
dronerdud
I suspect it's something really simple that I'm overlooking
[chrisbergr] joined the channel
#
[chrisbergr]
The wp_login action fires after the user has successfully logged in. And then you'll get redirected, Maybe you'll see something if you add die(); after your echo statement. But this ist not the right place to deal with Javascript I guess...
starrwulfe joined the channel
#
dronerdud
thanks [chrisbergr].. but I think it must be something else: if I (only) change wp_login to wp, it fires (on page load) and the msg is shown in the console so somehow wp_login doesn't seem to trigger...
#
dronerdud
Perhaps something is preventing that trigger, no idea what that could be. It's typically one of those problems that can keep a guy occupied for days before finding the ridiculously simple explanation ;-)
#
[chrisbergr]
Try this https://gist.github.com/chrisbergr/81e67b30f699dc6f86e38a4271b2923b to see what else is hooked into wp_login. But still.. I don't think this is going to work, due to the time this action is fired. "The `wp_login` action hook is triggered when a user logs in by the wp_signon() function. It is the very last action taken in the function, immediately following the wp_set_auth_cookie() call."
#
dronerdud
I used wp_login before, to redirect people based upon their user status.. worked just fine (on another site). This time the objective is to change the (WPML) site language based on their profile, I don't why that couldn't work. In any case, gonna try your function first, looks promising!
#
dronerdud
I don't see*
starrwulfe and blindnerd joined the channel
#
[chrisbergr]
I just tested your code on my current local site. With die(); after the echo I can see the following in the console: 'Debug Objects: this'. Without die() it is too fast the get because of the redirect to the Dashboard
#
dronerdud
ahhh that's what you meant! \
starrwulfe joined the channel
#
dronerdud
YES that's it indeed :) Many thanks! I'll be fine now
starrwulfe and gRegor joined the channel
#
GWG
[chrisbergr]: Nice to see you around.. what have you been up to, WordPress wise?
#
[chrisbergr]
It's been a while. I realized 28 woocommerce shops in 2022... So there was not a lot of time for my own private projects.. I did something. But slow. And then you see the progress of wp core and some indieweb related stuff running forward and forwad and I got frustrated not beeing able to get on with the same speed
#
GWG
We have made some progress.... we're really close to a new Webmention plugin rewrite
#
GWG
I rewrote Simple Location and Syndication Links... although I need to do more in the latter
#
GWG
What disappoints me is less than ten people using https://wordpress.org/plugins/tempus-fugit/
#
Loqi
[preview] [David Shanske] Description This is a compilation of many tweaks to improve your site, including… Date Based Archives will show up from oldest to newest, instead of newest first. When you are scrolling through memory lane, you want to do it in order. Adds the %da...
starrwulfe joined the channel
#
GWG
Maybe it is the name
[Murray] and doug_c_im joined the channel
#
[chrisbergr]
I've noticed that you published this plugin. But I don't need it, unfortunately. I've done an onthisday archive myself, if I'd like to have something like weekly archive or random post I'd do it the same way. My main archive is more like a normal blog post list with a lot of filters by tags, years and months, wildly combined.
#
Loqi
[preview] [dshanske] #3 Add Minor Update flag
#
GWG
[chrisbergr]: It is just my repository for all my time stuff
#
GWG
I'm surprised a few of those aren't standard in WordPress.
#
GWG
Namely the...date based archives oldest to newest by default
#
GWG
[chrisbergr]: Also, I really want someone to tell me they changed their permalinks to ordinal dates
#
GWG
Just for the geekiness factor of it
#
[chrisbergr]
"Add flag that would not update the last updated field on update for minor update." This is the best sentence I've read today. And I don't know what it means 🙂
#
GWG
Are you familiar with minor edit in a Wiki?
#
[chrisbergr]
My whole wiki experience is.. 3-5 edits in the indieweb wiki, that's all 🙂
#
GWG
Sometimes I make a minor change to a post and don't want the last updated date to change
#
GWG
Like recently, I added venue support and updated the old check-in posts to link to it and they ended up in my updated feed
#
[chrisbergr]
I like how you've done this ordinal dates url structure.. It is pretty intuitive how to get to your archives even without any navigation 🙂
#
GWG
I wanted to do a next/previous archive day link but I don't have posts on every day unfortunately
#
GWG
I never wrote the logic to make it work
#
GWG
I didn't add a.. only morning posts archive
#
[chrisbergr]
Talking the geek factor: https://david.shanske.com/2022/12/13/6193/ this reads like it is the 6193rd post on this day... Maybe instead of the ID you show a counting number, starting every new day with 1?
#
GWG
[chrisbergr]: That's the post id. I'm not sure how I can make the permalink do that
#
GWG
With any reliability
#
GWG
If you have an idea...
#
[chrisbergr]
You can have duplicate names if the posts are in differend "folders". So maybe it's possible to hook into save post action an set the name by counted posts for today + 1. That will do it for future posts. The other way, manipulating the permalink structure and sql querys per code may be possible too, but due to the huge possibility to break everything I would not do this....
[chrisbergr]1 joined the channel
#
GWG
Exactly
#
GWG
I thought I might try to enhance the automatic slug generation in some ways
angelo, starrwulfe, [chrisaldrich], dronerdud, RasAlGhoul and jsbach joined the channel