|
Oof, no ty.
|
# ¿ May 2, 2021 19:23 |
|
|
# ¿ May 14, 2024 13:18 |
|
I haven't used it personally, but I tend to keep a WordPress instance running in my local dev environment and on a dev server so I can test things like this out, might be worth looking into. With MAMP, getting WP running locally is pretty quick and easy. Also, Gutenberg has a Gallery block.
|
# ¿ May 7, 2021 00:34 |
|
CSS classes are CSS 101. I'd imagine the assumption is that if you're capable of styling an element using CSS, you're going to know what a class is and how to find it. I've hardly ever seen class names specified in documentation, inside or outside of WordPress, usually because there are dozens or hundreds of them on a page, they get added/removed dynamically by JS, etc. The tricky thing about WP in general is that it caters to a non-developer crowd, but if you want to do any customization outside of what a theme/plugin allows with their GUI, you're in developer-land and the amount of required knowledge to do so goes through the roof.
|
# ¿ May 14, 2021 15:14 |
|
Check out Gravity Forms addons section on their site, I’m 99% sure they have a quiz addon.
|
# ¿ May 18, 2021 21:18 |
|
If you're already using ACF: https://www.advancedcustomfields.com/resources/blocks/ Also, you can use ACF to generate PHP code for your fields and either include it in your theme or save it as a plugin which allows it to be version controlled.
|
# ¿ May 28, 2021 21:11 |
|
Siguy posted:1. Where should I be looking for themes that aren’t so ecommerce focused? https://themeforest.net/ is pretty much the go-to for pre-made themes. Many of the really good ones charge an annual fee for updates, though. That's just the way things are today. Siguy posted:2. Am I right to be suspicious of the themes with built in page builders or am I just making life harder for myself? I hate to say, "it depends," but it depends. I've built dozens of sites with and without page builders, and there are plenty of pros and cons I could list in a 5000 word post, but the short version is: PROS:
CONS:
Siguy posted:3. If I do give up and build from mostly scratch, is there a template or theme you recommend starting with? Sage is definitely the go-to modern blank slate theme, but as you've learned it leans heavily into modern front-end practices and is extremely opinionated about where and how you write your code. I personally really like it because it helps keep things clean and organized and it's incredibly well documented so I feel great about handing projects off to other devs (as opposed to, say, using a blank theme I coded completely from scratch and "forgot" to document), but it has a steep learning curve. My two cents: unless you want to be on the hook for support for the rest of the site's life, you should just have them buy a theme and do the basic install/setup for them. In all honesty, I wouldn't even accept this gig. Cheap or free clients are the worst clients 100% of the time because since they're not paying for your time, they don't value your time. Better yet, tell them to use Squarespace (which any idiot can set up), and bow out, imo.
|
# ¿ Jun 3, 2021 20:28 |
|
I'm pretty sure I talked about this previously in this thread, but ACF allows you to create custom blocks. I've used this on all of my recent Gutenberg projects and it's just as easy as everything else ACF does. Writing a Gutenburg block from scratch is about as easy as writing a complex React app from scratch. I have no idea why they made it so incredibly difficult. It feels very un-WordPress.
|
# ¿ Aug 4, 2021 01:21 |
|
If you're more comfortable JS, you could consider going headless WP and create a JS app that queries the WP REST API. GatsbyJS is commonly used for this purpose. Otherwise your question is so general I'm not sure what advice to give you. Is your plan to link the app more closely with WordPress, or to continue keeping them separate?
|
# ¿ Sep 22, 2021 15:05 |
|
Writing code in a text editor is what I do as well for 99% of my WordPress work, so you're just fine there. A lot of articles written about WordPress target non-developer users, so it's easy to go down the rabbit hole of "everything you make on WordPress must be created in the WP GUI and live within the WP ecosystem," but that's not entirely the case. At the end of the day WP is just a big PHP application, and you can do anything with it you might be able to do with any other PHP application. Will your app be written in PHP? If so, it seems like an integration should be pretty simple. If it were me, I'd probably have the application live in its own directory at the web root (or as a WP plugin for that matter, which would probably be the "correct" way to do it), I'd create a single page template with the WP header and footer (this is required for WP pages to function), and then I'd require/include the application between the two. I've done something similar before with a React app – basically WP just acted like a wrapper for the application and allowed users to create additional pages surrounding the application, but the app itself was all executed in code that was untouchable by my client and completely disconnected from WP in almost every way. Composer would be helpful if you need to manage PHP dependencies for your app, but I don't find it terribly helpful for traditional WP sites. Whether or not it's usable on the live site will also depend on who hosts the thing as there are many hosts who still don't support Composer. As an aside: it's entirely possible to connect to a second database within WP, so if you wanted to have your application live within the WP ecosystem, it's technically possible. See wpdb, and this basic example. The more that I think about it, creating your app as a WP plugin is probably the way to go unless you can foresee a future where it would need to exist outside of WP. As a plugin, you'd have the ability to expose various controls to admin users via the WP interface (creating an options page in the WP admin dashboard is trivial, especially if you use the ACF plugin which I would highly recommend), and you'd gain all the benefits of WP without having your code tied to a theme or template that a non-developer can easily gently caress up. ChickenWing posted:I've read that it's way easier to gently caress up and delete template pages than it is to delete standalone pages in the web root. Administrative users can delete themes (which is where template pages would live), and the theme editor provides a GUI that allows them to muck with the actual code of template files. A non-technical user could unintentionally delete important stuff, but it's a rare occurance. Usually I hide those admin menus from users so they can't accidentally break things. Creating your app as a plugin would avoid this issue because WP doesn't allow users to edit plugin code via a GUI. The worst they could do would be to disable/delete the plugin, but all you'd need to do would be to re-install/enable it again.
|
# ¿ Sep 23, 2021 16:14 |
|
Are you only migrating content, or moving the full site from one server to another? A content migration means the content leaves one site/WP theme and enters a completely new site/WP theme, wheras a site move means moving all of the site (web files, database, etc.) and dropping it on a new server. I've done a few very hefty content migrations lately (>30,000 posts each, with complicated field structures and mapping), and honestly all of the sever to server plugins I tried sucked. WPMU's migration tool is okay if you're running a mostly vanilla WP instance w/ few or no custom fields, but if your migration is large or in any way complex your best bet is WP All Import (and the affiliated export/custom fields add ons). If your field mapping from site A to site B isn't 1:1, you may need to look into custom bulk actions as well to update the content on each post after they're imported. If you're simply moving a WP site from one server to the other and not actually migrating content, it's usually as easy as downloading all of the web files, creating a database dump, and then uploading everything to the new server. All-in-One WP Migration does this well, if you don't feel like mucking around in SQL-PHP-land yourself.
|
# ¿ Sep 24, 2021 15:20 |
|
greazeball posted:I haven't been following this thread since you all gave me a bunch of advice earlier (thanks again!) and don't know how relevant this will be but... That sounds like a pain in the rear end, but tbh it sounds like Jetpack is doing the lord's work because Divi is a huge piece of poo poo theme that deserves deletion! I totally get how painful it probably was to deal with, but this still gave me a nice, sensible chuckle over my morning coffee.
|
# ¿ Oct 19, 2021 15:57 |
|
Redirection is the only redirect plugin that is worth anything.
|
# ¿ Oct 20, 2021 17:41 |
|
I use Sage, but not Bedrock or Trellis. My opinion in a nutshell: It Is Good But It Has Flaws. I still prefer it over every other blank slate theme I've tried. Pros:
Cons:
|
# ¿ Dec 28, 2021 20:56 |
|
It depends on the project tbh, but I usually budget 1-2 hours for local dev environment setup. If I'm coding a site for a client and they already have a (good) host or I can recommend a host, I'll usually put them on a host with a dev tool that's easy to work with (ie. Kinsta/DevKinsta, Pantheon/Localdev, Flywheel/Local). That way I don't have to think too much about the development environment, can easily push/pull code and databases every which way between various local and dev/test/prod environments, and when it's time for launch I don't have to deal with moving everything from server A to B. Local is my favorite of the three tools, but Kinsta is my favorite of the three hosts, so it's a mixed bag. Otherwise, if I need to spin up something locally for whatever reason, I use MAMP and then try to get the project into something closer to the final environment as quickly as possible. MAMP is dead simple, and WordPress isn't a terribly finicky application that's suddenly going to break on different hardware, so Trellis just seems like overkill. It sounds great if it works, but nothing ever works the first (few) times. The deployment component is the only piece that really sticks out to me as valuable, but there are other tools that can be used for that. For weird one-offs or cheap clients, I tend to develop locally in MAMP and then deploy to a Digital Ocean droplet running a basic LAMP stack (which requires about 20 mins to set up [once you've done it a few times]) when the site is ready for client review/approval. Once they're happy with everything, I either move the database and web files to their host if I'm handling launch, or just download and zip the public_html directory and dump the SQL database and hand it off to them if they're handling launch.
|
# ¿ Dec 29, 2021 02:26 |
|
If you deleted the page WordPress thought was the "homepage" or "posts" page, it can get a little confused. If you go to Settings > Reading on the WP dashboard, what do you see selected for the "Homepage" and "Posts page" fields?
|
# ¿ Mar 17, 2022 17:00 |
|
fuf posted:Does anyone have a really solid procedure for migrating WordPress sites around? Assuming you only have cpanel or ftp access. Quoting myself from a few pages ago: kedo posted:Are you only migrating content, or moving the full site from one server to another? A content migration means the content leaves one site/WP theme and enters a completely new site/WP theme, wheras a site move means moving all of the site (web files, database, etc.) and dropping it on a new server. It sounds like the last paragraph is applicable to you. If you are truly just moving from server A to B my process is literally just this: 1. Download everything in your public HTML directory via S/FTP 2. Dump the database and download it. 3. If you need to change the site's domain, do four find/replace in the downloaded .sql database thusly: code:
4. Upload all the web files to your new host. Update wp-config.php with your new database info. 5. Import the .sql into your new database. That's it. I've probably migrated a hundred sites this way over my career (mostly before auto-migration tools existed), so it's tried and tested. The All-In-One Migration tool basically just does all of this for you. kedo fucked around with this message at 18:24 on Mar 23, 2022 |
# ¿ Mar 23, 2022 18:14 |
|
fuf posted:You've never been caught out by PHP serialized data just doing a standard find/replace like this? That really surprises me. I've literally never once had an issue. The find/replace doesn't impact PHP, it only touches SQL, and WordPress only ever stores URLs in plain text. You'll notice I'm only finding/replacing the base URL and completely ignoring everything else, so as long as the permalink structure doesn't change, this works just fine. A simple A to B WP migration is one of those things that sounds scary, and developers have engineered a lot of plugins that obfuscate the process, but in reality it's just "I put all my stuff from A onto B, and now it just works," (thank goodness). e: Of course I haven't actually performed a migration like that for awhile. All of my migrations these days are, "we have a WP site we built back in 2006 that's been running ever since, and now we have 100,000+ posts that need to migrate and all of them need a bunch of content transformations, and half the content needs to be put into custom fields, etc." so the process is a lot more complicated and requires a lot of custom scripting.
|
# ¿ Mar 24, 2022 17:07 |
|
Yeah, but even if data is serialized that doesn't mean URLs get mutated.PHP code:
e: Oh, I understand what you're talking about – never mind! Again, I get what you're saying, but I have yet to have an issue with this. Maybe I'm just not using plugins that serialize data (my default position on plugins is, "does it really need a plugin?"), and I'm definitely not using themes that do because I code all my own themes and generally turn down any project that looks like a mess of pre-built themes and plugins, so maybe I've just somehow accidentally avoided this issue my entire career? Deleted the rest of this post as it is no longer applicable, but leaving the amusing story I included for laughs: oof, let me tell you all about a client I had using an old version of Firefox that, if you dragged and dropped an image from your desktop into a TinyMCE editor, it would automatically encode the image as base64 and stick it into the post – his WP database was 10 gigs before we realized the problem kedo fucked around with this message at 16:03 on Mar 25, 2022 |
# ¿ Mar 25, 2022 15:44 |
|
https://docs.gravityforms.com/using-dynamic-population/ Is this what you're looking for? I use Gravity Forms mostly because I had to buy a developer license for a project many, many years ago so now I can license it for free on every single site I make. The new version isn't half bad, but it's still a pain in the rear end to deal with. I have yet to find a form plugin that doesn't suck massively in some way. fuf posted:yeah I have the exact opposite issue where I often get asked to host or migrate sites that are an absolute mess of page builders and plugins! Oh I hear you. This was me at my last job (except replace "migrate" with "fix"), and is how I got so deep into WordPress – fixing other people's messes. When I finally quit and went freelance I made a promise to myself that if a client came to me with a project that looked absolutely miserable, I wouldn't accept it. My life is incalculably better, and this is one of the big reasons why I'm incredibly hesitant to accept a position for a firm where I don't have final say over which projects I do or do not accept.
|
# ¿ Mar 25, 2022 20:52 |
|
Like, you want it so that if someone puts >= 500 in one field, the form auto-updates on the fly (without a page reload) to set field 2 to -500? JavaScript code:
kedo fucked around with this message at 15:44 on Mar 28, 2022 |
# ¿ Mar 28, 2022 15:41 |
|
Hmm, so I wonder if I'm following you correctly – your goal is for a user to submit a form, and upon submission you want a specific field to be modified and then you want to save the modified value in the entry (ie. the original unmodified value gets completely replaced)? My understanding is that gform_calculation_result doesn't actually update the entry, but just returns a value based on your math. I think you might need gform_pre_submission to actually update the value in the entry?
|
# ¿ Mar 31, 2022 19:06 |
|
Basically no (this is one of the big reasons why I absolutely loath page builders). Depending on what the actual page content looks like, I'm assuming you see a whole bunch of HTML content and shortcodes in your posts? The best I've been able to do with stuff like this in the past was to write a custom Node script that would either use various DOM manipulation tools and/or regular expressions to strip out all of the unnecessary VC crap, but it is a slow, tedious process. I charge an arm and a leg for work like this because I hate it.
|
# ¿ Apr 22, 2022 18:18 |
|
worms butthole guy posted:also if any WordPress developers are looking for work, I am looking for someone to take over my old clients who are annoying as gently caress small businesses. It pays lovely, probably $35 or $40 a hour and its self employed so it's not consistant but if anyone wants some WordPress work send me a PM and I can put you in touch Way to sell it. :P
|
# ¿ Oct 3, 2022 14:33 |
|
Yeah, I have mostly stopped working with small businesses for exactly this reason. I got tired of every invoice being nitpicked and every email subject line saying something along the lines of "URGENT/BUSINESS CRITICAL!!!! my pink text isn't showing up as pink"
|
# ¿ Oct 3, 2022 14:46 |
|
worms butthole guy posted:yeah i remade it for them You are too nice. My response to this sort of thing is "Sure, I'd be happy to help you with this! Here's an hourly work contract with my rush rate. I estimate this work will take X hours, so the invoice requires a deposit of Y to cover initial expenses. I look forward to helping you with your project!" The only person in my life who I'll do work for for free is my wife because she's the person who has to listen to me bitch and moan about doing free work (so she pays for it in a way, I guess). No one else gets free work, period.
|
# ¿ Oct 3, 2022 15:19 |
|
Are you contracted to do maintenance work? Because if so and if you're not doing it, then it doesn't just "feel" like a scam.
|
# ¿ Oct 3, 2022 15:43 |
|
fuf posted:Another issue caused by the same dev who decided to roll his own contact form design... This time it's an ACF thing. It looks like that line expects 'booking_button' to return an array, but instead it's returning a string. I'd check to see what it's actually returning and then adjust your code accordingly.
|
# ¿ Oct 4, 2022 17:25 |
|
Yeah, the pre-made theme market is a poo poo show these days because everyone is trying to compete with the likes of Squarespace and Wix, so if your theme doesn't come with a site builder built in, it is bEhInD tHe TiMeS. Elementor isn't terrible, but it isn't great either. I had to make a site with it once (due to a client's request) and it was an absolutely massive pain in the rear end. I won't touch Divi.
|
# ¿ Oct 20, 2022 14:22 |
|
zmcnulty posted:My contact form seems to have died sometime around August 2nd. I only noticed about a week ago. It collects data but no longer emails me the form results. So I have to go into the dashboard -> Feedback -> Form Responses to see what I received. Luckily I didn't miss anything hugely important, but it is how I receive most inquiries via my site. WordPress is notoriously terrible at sending email. Try WP Mail SMTP paired with your SMTP provider of choice and just use someone else who specializes in email instead. This is the silver bullet for 99.99% of WP email problems.
|
# ¿ Nov 8, 2022 03:49 |
|
My company is going to be hiring a WP dev in the near future. We'll be looking for someone who is up to date with modern best practices, has familiarity working with a fairly standard toolset (ACF, Gutenberg, Sage 10), and strong skills with S/CSS, JS, and PHP. Experience with modern JS libraries (eg. React, Svelt, etc.) is a plus, and attention to detail an absolute requisite. The company itself is stellar to work for – competitive pay, outstanding benefits, great client list, wonderful coworkers, etc. If this sounds like a good fit for you, shoot me a PM!
|
# ¿ Jan 18, 2023 20:46 |
|
Unless you have a WP caching plugin enabled, I'd imagine the caching is taking place within your plugin. WordPress has extremely limited native caching abilities, and what you've described doesn't sound like something it would do on its own.
|
# ¿ Oct 27, 2023 14:22 |
|
Basically no. You'll have PHP error logs and access logs on your server, but those probably won't contain the type of data you're looking for.
|
# ¿ Jan 2, 2024 15:14 |
|
|
# ¿ May 14, 2024 13:18 |
|
What’s the plugin, and what version are you starting with?
|
# ¿ Mar 3, 2024 19:57 |