#wordpress 2019-10-31

2019-10-31 UTC
jeremycherfas, pierrebocDiscord, h2Discord[m], CantiTurtleCoinD, benaszabDiscord[, hvergaraDiscord[, jwheelerDiscord[, M3baidDiscord[m4, AlekseyDiscord[m, discord[m], fozzieDiscord[m], M}Discord[m], cwDiscord[m], janttoDiscord[m], silent_ActivistD, aaronpk[m], TryptophanDiscor, AXEL-BrianDiscor, ddahlDiscord[m], NatoBoramDiscord, KubeDiscord[m], gregjeanmartDisc, AxieDiscord[m], r5723013Discord[, johanherman[m], bengoDiscord[m], gozala[m], felixschlDiscor4, chmanieDiscord[m, cwchristerwDisco, cristobalDiscord, bushido711Discor, CarboClanCDiscor, celsoDiscord[m]1, hazDiscord[m], hubaDiscord[m], nijynotDiscord[m, foxcoolDiscord[m, Clment[m], LordFenixNCDisco, zcopleyDiscord[m, ad87657Discord[m, PamileissonDisco, buztedDiscord[m], M[AXEL]JulianDis, thatguyDiscord[m, tom85Discord[m], raulDiscord[m], test123Discord[m, leoalvarezhDisco, bekoDiscord[m], eshohetDiscord[m, aeddi[m], cesarosumDiscord, nofwayyDiscord[m and [chrisbergr] joined the channel
#
[chrisbergr]
[JHSheridan] Of course I also use post kinds, but I give each post the same category again (e.g. Post kind photo has category "photo"). This is of course a little messy when creating the posts. But I have the url's better under control and it also works better with my breadcrumbs.
#
[chrisbergr]
And with the following code I can exclude them from the rss and atom feeds:
#
[chrisbergr]
function exclude_category( $query ) {
#
[chrisbergr]
if ( $query->is_feed ) {
#
[chrisbergr]
$query->set('cat', '-206, -208, -214');
#
[chrisbergr]
return $query;
#
[chrisbergr]
add_filter( 'pre_get_posts', 'exclude_category' );
SevenTwenty joined the channel
#
[chrisbergr]
Oh, and I can create individual templates for the archive like 'category-photo.php'
#
[chrisbergr]
I don't know if this is possible with post kinds
#
GWG
[chrisbergr]: Are you asking if you can do a custom theme template? Yes, you can
#
GWG
I'm positive I set that up
#
[chrisbergr]
Of course I am able do to the theming thing, but I am asking if there is something like kind-photo.php possible in the theme root folder. The way it works for categories
#
[chrisbergr]
Oh, I guess this should work with the archive templates
#
GWG
taxonomy-kind-photo.php
#
[chrisbergr]
Yes, thanks. I knew there has to be a way 🙂
[fluffy], [Ramiro_Ruiz], [grantcodes], [chrisbergr], jeremycherfas, [Rose], [qubyte], [xavierroy], [jgmac1106], [KevinMarks], ianfixesDiscord[ and SevenTwenty joined the channel
#
beko[m]
GWG: are you having trouble setting up the buildchain for WP JS? I may assist you on this. tbf WP is weird here even for a JS/TS hacker ;)
#
GWG
The npm install commands keep crashing
#
GWG
I think it is my configuration
#
GWG
I have not set up core dev in a few years, since I left my job as a component maintainer
#
GWG
I don't want to do js dev, but I don't see how to run just the PHP unit tests anymore without the js ones
#
GWG
I may have to look more closely
#
beko[m]
something useable from the crash or "just" seg fault?
#
GWG
It says killed
#
GWG
I figured that it might be something with my install of npm. I thought I might spin up a raspberry pi or something if I don't want to deal with it
#
beko[m]
*pulls up irssi session
#
GWG
Maybe docker. I have never done anything with containers
jeremycherfas and [grantcodes] joined the channel
#
[grantcodes]
Hmm weird. Usually npm is good at installing or at least telling you what went wrong
[chrisbergr] joined the channel
#
[chrisbergr]
On Apple I never had problems with npm. On Windows more often. And no, that's not a "Apple is so much better" statement, its just an observation.
#
cambridgeport90[
I haven't tried that yet. I've heard it's a pretty fun language.
#
[chrisbergr]
It's a packet manager like composer but for javascript development.
#
[chrisbergr]
@cambridgeport90[ Finally I read your name again 🙂 Is there a way to reach you 1:1? Haven't found any contact information such as an email address on your site
#
cambridgeport90[
Click on my profile and one of my posts and you’ll find everything. You’ll see all the links that I’m associated with as well.
#
[chrisbergr]
Yeah, I saw those info. But I didn't want to use Twitter DM because I am a victim of this shadow ban thing. I once insulted a politician. github has no messaging system as far as I know. Maybe I'll just create a gist and paste the url here.
#
cambridgeport90[
You can also add me directly on here, as well. I use this with anyone who wants to add me. It would be my preferred, except a lot of people don’t know about it.
#
[chrisbergr]
I'm using slack, so there is no way to dm you "here"
#
cambridgeport90[
Darn. I am going to set up a public Mattermost server soon.
#
[chrisbergr]
Mattermost looks really promising. I said some days ago I'll provide you some hints for your wp css game. Hopefully this helps a bit. https://cho.bz/docs/cambridgeport90.txt
akierig, [Evan_Travers], [jgmac1106], [Ramiro_Ruiz], [tantek], [snarfed], gRegorLove and [Lewis_Cowles] joined the channel
#
GWG
Afternoon
akierig, [schmarty], [snarfed], [qubyte], [fluffy], [tantek], [Bradley_Allen], [manton], jbove and [jgmac1106] joined the channel; akierig left the channel
#
GWG
Final prep for WCUS
[tantek] and [jgmac1106] joined the channel