Skip to content

u/forxs

In this archive from Mar 2013 to Jan 2026

5
posts
56
comments
1
media
183
score

It would be good to understand why the values need to come from ACF, and you can't just add them to the form, that way you could use the conditional logic built into the form to show a specific set of time slots for that course.

Dynamically adding content to GF fields isn't that hard, but handling a further field's content conditionally is pretty hard.

For the first select you could do something similar to this post: https://community.gravityforms.com/t/dynamically-populating-drop-down-with-custom-field/4606

Where you create an array from your ACF repeater values, and then insert it into a pre-defined select field.

The second select is harder. I would still have the empty select in GF, but have it greyed out initially. When a user selects an option in the first field it would need to fire an AJAX call to retrieve the values from ACF and then populate the select with the GF JS hooks.

Something like that. I'd probably add the data into ACF as 2 nested repeaters. The parent repeater being the Courses, and the child repeater being the time slots. Then you can create an array with all of that data to create the fields. The hard part is getting that array to the JS for the second field.

1 points

Does anyone have any insight as to why the WordPress req/s is so much lower than the other examples? For example, Drupal gets 1,432 req/s compared to WordPress being 58 req/s? Is it due something like the DB architecture, or are the figures not really comparable between systems? Or is it just really slow?

2 points

Local by Flywheel is by far the best local development toolbox for WordPress. It's made my life so much easier than the old days using MAMP/XAMP. That takes care of the local server, database, and PHP management with a bunch of useful tools on top, including deployment to Flywheel or WPEngine. Our agency switched to Flywheel because of Local and because their hosting is top notch.

I use Codekit for all of my preprocessing, linting, minifying, and package management. I tried switching to PrePros but the JS file processing was far too slow, but if I was using Windows I'd use PrePros.

I use Sourcetree for GIT and only track the theme directory. I may some day get around to using something like Packagist to manage plugins, but we just haven't really needed it so far.

We use Figma for wireframing, designing, and tech specs. It's great for getting fast responses to queries from the designer/account manager.

We use Trello for bug tracking, though we're moving all of this over to Notion along with our documentation and environment management docs.

1 points

I work at a similar agency and our approach might work for you.

I essentially build a product for us that's a WP theme with standard, prebuilt blocks built with ACF blocks. Then we have different tiers of pricing from cheap and not very custom, to expensive and very custom. So it comes with about 20 blocks, from page banners to post listing, and carousel blocks.

That way we keep the admin clean and easy to use with Gutenberg, and we reduce our costs for build. We also moved some of the price to hosting and maintenance as our clients find that easier to get sign off on.

1 points

The only way I can think of to do this is run headless WP using React. You can see more here: https://www.youtube.com/watch?v=9KGuI0UmpMw&t=182s

There are a bunch of videos that run through doing this in slightly different ways, but this is the only way I can think of that you can do this without touching PHP.

IMO learning that on top of how WP works seems like a steep learning curve. I'm not sure why you want to avoid learning PHP, but I would say that learning the basics of PHP and building the site in a more traditional way would be far easier.

As for building components, ACF is a plugin that allows you to easily create and organise content fields in the WP admin. The blocks functionality makes it pretty easy to build components and drop them anywhere in the site but will definitely require PHP (unless you go the headless route).

I don't really get why you've chosen a PHP CMS if you don't want to use PHP though...there are plenty of open source JS based CMSs.

2 points

This is great feedback. Overall the design is good.

The "Size" area is too cramped and the touch targets are too small, the "Add to cart" button also looks slightly off centre.

It looks like you've squished it a bit to fit it all on the screen, which is understandable. But I think you could put the carousel pips on the image on both pages, which would give you more space for the other elements.

3 points

My point wasn't that Squarespace is more secure than WordPress, or even that Squarespace puts a high priority on their users' privacy. My point was that it is very common for people to try and build websites using an off-the-shelf theme, and plugins that they have found through a quick search...and often try multiple plugins before they find one that works, which has a very high risk of infecting your website with malware. Squarespace is definitely more secure than a malware riddled WordPress site.

4 points

I have worked with WP for 15 years, so what I'm going to say isn't out of a dislike of the platform...but

WP is best suited to people who will pay an agency/dev to build them a website. The worst thing you can do is get a fresh copy of WP, install a theme and then start adding a bunch of arbitrary free plugins to try and get the functionality you want. At best it will be bloated and slow, at worst it will be infected with all sorts of malware, risk your clients' information, and could severely damage your business.

In my professional opinion, this kind of use of WP has been completely replaced with Squarespace.

16 points

Try to make sure there aren't any bugs first. You can load up console from an iPhone from a computer and see if it's throwing any errors. I had an issue like this once and it was due to how Safari was handling a missing image that was hidden in a drop down.

I'd move on to making sure your images are optimised, because this is usually by far the biggest bandwidth hog. Then move onto things like caching and CDNs.

I'm not saying you shouldn't do all of it, but the fact that mobile is loading significantly slower than desktop is a red flag for me.

1 points

I'd probably say that, fundamentally, WP is a platform for non-technical end users. If you're building a product that will only be modified by developers then you probably shouldn't be using WP, but obviously I have no idea what your general use case is. It sounds like an MVC framework like Laravel might be more viable since it would ultimately be more extensible.

As for embedded blocks, you can simply have a different sub-block file which is included in the parent block and enable it with the parameters in the admin. Though I've never needed to do anything like that.

1 points

You can define anything in ACF for each block. So you can have text fields, WYSIWYG editors, images, but also booleans, select fields, radio buttons and repeaters. It also allows for conditional fields, so you can show parameters if a specific boolean is set to true for example.

You can alse set up all of your fields in the PHP if you prefer so none of the config is accessible in the admin.

2 points

Modularising you code is definitely satisfying and time saving. I've never used short codes in this way but it sounds like it would be quite difficult for someone without the technical knowledge to be able to configure it in WP.

ACF allows you to easily build a page out of blocks using "ACF flexible content". I have a directory of PHP blocks with parameters you can set in the WP admin. Then the JS and SASS directories each have a "blocks" directory where each file name corresponds to the base block template. Each block's HTML has a class with the block name so you can easily see what that block is called and pull up the code for it in seconds.

I have blocks for post listings, articles, carousels, banners, spacing etc... which all work together so a client can build any page they need, all the blocks are available in a drop down. This is a huge selling point for our agency when we pitch for work.

2 points

I really like the wallpaper, but it boggles my mind that 1920x1080 is still posted in this sub. I haven't had a resolution that low since 2012...I haven't even had a phone with a resolution that low since 2014. This is a vector image, why is the res so low?

1 points

In my experience, when a client is experiencing slow load times it mostly down to the hosting. When we migrate them to our servers the issues are usually fixed. After that we look at image sizes before other asset sizes, and then move onto caching, CDNs and other optimisations highlighted by a tool such as GTMetrix.

1 points

The new editor looks nice, and I like how the publish button is always available, but it just doesn't work as well with ACF as the old editor. With the old editor you can hide everything and just have the flexible content area on the page. With the new editor you can't get rid of the huge empty top area. Also, when changing the template to your flexible content template, it doesn't load in instantly. You have to select the template, publish the page, and then refresh. Clunky.

I understand that, going forward, we're supposed to be using ACF with blocks, but that doesn't help me with all of the sites I have to support...which if I want to upgrade them now I also have to make sure I install the classic editor.

I'm not averse to change, on the whole I think it's positive that WP is moving forward...but I just love how it works with ACF now that I don't really want anything else.

4 points

If you want to build sites for clients, do not use page builders - the clients will try and change things / make updates and break everything.

I you want to make your own theme then use something like Advanced Custom Fields. It makes all of the content extremely easy to edit in the admin, and makes it very easy to display that content on the front end.

Grab the pro version and start using flexible content fields to create layouts - it's how I build all of my sites and clients love it.

2 points

You give people way too much credit. I am head of the digital side of a creative agency and we had a small project come in that we wouldn't usually do but one of our account managers said that she could do it in Squarespace.

Long story short, she spent over 100 hours just trying to put a basic 4 page website together with all of the copy and images provided.

Basically, just because you find something easy doesn't mean other people will...and if they're willing to pay you to do that then it's probably best not to question it.

4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.