#dev 2016-12-26

2016-12-26 UTC
tantek, KevinMarks, miklb__, myfreeweb_, petermolnar_, KartikPrabhu, benborges, KevinMarks_, Zegnat and Sebsel joined the channel
#
miklb__
GWG I want to filter my posts on the home page by post kind. I'm currently looking to use a tax_query with a WP_Query. Any other suggestions?
#
miklb__
and store them in a transient most likely
#
tantek
miklb, what particular posts do you want to show or not show on your home page? Curious about your use-case
#
miklb
tantek I want to show my latest article in one section, with a link to all articles, then a show a larger section of notes, with a link to all notes. I might also separate out photo posts for another section.
#
miklb
article/blog post/longer read
#
GWG
tax query should be enough
#
miklb
ok, thanks
#
GWG
You might be able to cache the results
#
GWG
By the way, if you are using Post Kinds, /kind/article will give you a link to all
#
tantek
miklb - ah - I undersand the articles module
#
tantek
I have a little box for that, but it only shows the latest 3 articles
#
miklb
I may show more than 1, still working out the UI. I'm pretty much determined to switch and launch on WP by 1st, warts and all.
#
miklb
kinda funny. 12 years ago Feb I launched that site on WP and here I am re-launching it on WP
#
GWG
miklb, here if you need support
#
miklb
GWG thanks. Mainly I've been dilly dallying with theme. Other big thing is manually porting metadata from Jekyll
#
GWG
I want to do some theme work in 2017
#
GWG
Lots has changed since the last project I did on that
#
miklb
I manually applied your mf2 changes to my underscores based theme and am using some Sass/CSS from an HTML template I found, with custom code for the rest. Just have been slow in making design decisions so trying to push through enough to go live and then just keep tweaking.
#
miklb
Tweaking is my favorite part anyway
#
miklb
For my WP install, I'm looking to use Redis for opcache and test out Varnish as well
#
GWG
miklb, the issue comes with placement of the additions made by the plugins seamlessly.
#
GWG
The easiest way is to add them to the_content filter, but that results in some weirdness
#
miklb
I never had good luck with that. When I did Genesis customizations, used their filters and sometimes felt it would be easier to just write my own queries and skip them.
#
GWG
Well, if you put reply context into e-content some parsing issues come up, such as with Bridgy Publish.
#
miklb
hasn't gotten that far yet
#
GWG
miklb: It was frustrating at the time and the solution I came up with was not ideal.
#
aaronpk
XSLT lives
#
aaronpk
it's a pretty good way to have a podcast RSS feed look like a web page
#
miklb
GWG just saw you comment about caching results. That's what I'll use transients for
#
aaronpk
so much better than looking at a blob of XML in the browser
KartikPrabhu joined the channel
#
tantek.com
edited /Medium (+185) "/* POSSE */ POSSEing likes"
(view diff)
#
Zegnat
aaronpk, do you let the browser run XSLT, or do you convert your podcast RSS to HTML offline?
#
aaronpk
well i saw that in a wordpress podcast plugin
#
aaronpk
then i copied it for archiving a different podcast feed
#
aaronpk
when i generate podcast feeds i generate the HTML and XML separately
#
aaronpk
but i kind of like this XSLT trick just to make the XML feed itself look a little nicer
#
KevinMarks
What's the feed?
#
KevinMarks
That was odd - when I hit chrome's make mobile friendly link it only showed episodes 10 through 4
#
GWG
aaronpk, whatever happened to Drunk Transit?
#
aaronpk
Transportini? haha
#
Loqi
nice
#
GWG
Yes, that.
#
aaronpk
we want to still do more episodes but lots changed this year so we've had to re-prioritize things
#
GWG
The podcast reference put me in mind of it.
#
Zegnat
aaronpk, looks real nice for an XML file, well done
#
aaronpk
oops thanks
#
aaronpk
i can't take any credit for that, it's the xslt that ships in https://wordpress.org/plugins/seriously-simple-podcasting/
#
KevinMarks
The best kind of xslt is xslt you don't have to write
#
Zegnat
KevinMarks++ truth
#
Loqi
kevinmarks has 1 karma in this channel (257 overall)
tantek and KevinMarks joined the channel
#
aaronparecki.com
edited /events/2016-12-28-homebrew-website-club (+94) "HWC PDX is invited to Aaron's birthday!"
(view diff)