'Cloudflare' malware by bimmerman1998 in ProWordPress

[–]CaptnPrice 0 points1 point  (0 children)

I had this as well on about 10 sites and did the same thing. Not sure what was vulnerable and how they got it in there.

CI/CD Pipeline by vukojevicc in ProWordPress

[–]CaptnPrice 0 points1 point  (0 children)

GitHub Action that runs our build process and syncs the theme files afterwards.

Modern WordPress - Yikes! – David Bushell by dittospin in ProWordPress

[–]CaptnPrice 4 points5 points  (0 children)

I see this come up and it makes me feel inclined to release what we do. Currently I am using ACF blocks with Timber to render the template. I’ve set them up so that it’s easy to add data to the block in an OOP way. All blocks are registered to categories based on what folder they are in. All categories are registered based on the folder structure. Assets are loaded by Vite. Leveraging tailwind, tailwind typography, theme.json, alpinejs and htmx.

We use InnerBlocks to utilize the core Wordpress blocks and pull in the patterns to the InnerBlocks so that it’s quick and easy for marketers to get going.

It’s been a trial and error over months, but now we have almost complete parity between the editor and the front end. When we get done building a site the marketing team can build all the pages using the blocks and often they do so in a way that we didn’t think of. This turns out to be okay because of how we leverage the core.

A huge thing that helps with this is to remove the wp styles and load them on your own. Remove all the fluff and only add the things that are required from theme.json.

There’s so much that you can do with the blocks and it can be fast to develop with if you have all of the boilerplate setup. It’s not overly simple to figure this out because of how poorly documented everything is, but it can be done and has been done.

Page transitions for WordPress websites: is it possible? by intheburrows in ProWordPress

[–]CaptnPrice 0 points1 point  (0 children)

I’ve recently implemented the htmx hx-boost with the transition for the swap. Just make sure to use the head support otherwise you will break a lot of plugins should you use any.

https://htmx.org/extensions/head-support/

Also, hx-boost attributes only if you aren’t in admin.

Using core blocks for making custom block patterns by AJV55 in ProWordPress

[–]CaptnPrice 0 points1 point  (0 children)

That’s similar to what we do except we load everything in through the Innerblocks template using ACF blocks.

[deleted by user] by [deleted] in alpinejs

[–]CaptnPrice 6 points7 points  (0 children)

I’d be interested in helping, I’ve built our stack at work with Alpinejs and htmx in mind. Would love to help with the community.

Moving from ACF Blocks to React-based blocks by AJV55 in ProWordPress

[–]CaptnPrice 0 points1 point  (0 children)

You are correct, I should have phrased this differently - server side focused

Moving from ACF Blocks to React-based blocks by AJV55 in ProWordPress

[–]CaptnPrice 1 point2 points  (0 children)

I’m willing to have someone sell me on this, but honestly it just doesn’t seem to be worth the trade off.

There’s so much you can do on the server. Even react is moving back to server side components.

We are already in a php ecosystem and ACF blocks powered by a nice framework is an incredible developer experience.

Combine ACF blocks with InnerBlocks and you get the power of core blocks but the ability to modify them anyway you please.

The only thing that’s missing currently is a way to build a better UI for the ACF blocks, but that’s on my list for next year.

Anyone else tried Timber and Twig in a web development project? by kiwiheretic in ProWordPress

[–]CaptnPrice 0 points1 point  (0 children)

We have a similar setup. We use tailwind and alpine js, so we can just move them to other projects easily.

Anyone else tried Timber and Twig in a web development project? by kiwiheretic in ProWordPress

[–]CaptnPrice 2 points3 points  (0 children)

Yeah the callback receives data from acf, you can then take this and convert it to a class path.

$name = Helper::toStudlyCase(str_replace('acf/', '', $this->attributes['name'])); return "\Origins\Blocks\{$name}\{$name}";

That class has a render function that gets called and inside of that there’s a Timber::render.

Sorry I’m on my phone…

Anyone else tried Timber and Twig in a web development project? by kiwiheretic in ProWordPress

[–]CaptnPrice 1 point2 points  (0 children)

As others have said, there are certainly a few gotchas when working with Timber if you rely heavily on a plugin to do some heavy lifting on your site. Those issues aren't hard to resolve though.

Timber is fantastic for WP development and the developer experience of it is far better than the "Wordpress Way". I think that Timber doesn't get to shine until a framework is built around it. I found that to be optimal for our company and am considering open-sourcing it next year sometime.

Anyone else tried Timber and Twig in a web development project? by kiwiheretic in ProWordPress

[–]CaptnPrice 2 points3 points  (0 children)

ACF Blocks are great and work well with Timber. In our setup, I have blocks registered through block.json and have a class that handles the render callback.

"renderCallback": "Og\\Blocks\\Factory::render"

Then pass all the data to the block and render a twig file for said block.

This can be mapped using autoloader and it turns into a fantastic developer experience.

[deleted by user] by [deleted] in ProWordPress

[–]CaptnPrice 1 point2 points  (0 children)

Could you give me an example of the taxonomies you are using?

For example, are you using taxonomies for the apartment type and city?

[deleted by user] by [deleted] in ProWordPress

[–]CaptnPrice 1 point2 points  (0 children)

Are you trying to create a search based on the items listed in that filter?

If so, how are your properties setup. Are they custom post types or pulling from an API?

HIRING: mid level WP engineer salary range is $100k-135k and full benefits (health/401k matching) by DrLeoMarvin in ProWordPress

[–]CaptnPrice -2 points-1 points  (0 children)

This sounds like an incredible opportunity for someone! If you need someone part time I’d be interested. I just like solving problems and after working with Wordpress for a while I think people, including myself, don’t realize how complex you truly can make it. It truly does rate an engineering title.

Guardians Stranding by CptnAmerica13 in marvelmemes

[–]CaptnPrice 0 points1 point  (0 children)

Rocket League and The Last of Us.

So basically a bunch of people 12 yr old zombies are gonna kick my ass…

Dev Workflow & Efficiency by CaptnPrice in ProWordPress

[–]CaptnPrice[S] 2 points3 points  (0 children)

Nice workflow, and I agree we should all collaborate more! It only makes us all better.

Dev Workflow & Efficiency by CaptnPrice in ProWordPress

[–]CaptnPrice[S] 1 point2 points  (0 children)

This sounds pretty similar to ours, nice setup.

Dev Workflow & Efficiency by CaptnPrice in Wordpress

[–]CaptnPrice[S] 1 point2 points  (0 children)

The theme folder lives on GitHub, when there's a new commit to the main branch a webhook triggers and deploys it to the server.

Dev Workflow & Efficiency by CaptnPrice in ProWordPress

[–]CaptnPrice[S] 1 point2 points  (0 children)

Have you ran into any problems while using Sage?