Category Archives: General

General news not fitting into another category

More WordCamp St. Louis Videos

Two more videos have been published from WordCamp St. Louis 2014! This time we have Konstantin Obenland talking about options, transients, and theme mods – Oh My!

We also have the delightful Tom Harness and Leigh Caldwell who share their experience and advice on how to leverage your business’ blog like a rock star.

Keep track of all our great presentations as they come online at WordPress.tv!

Video Of the July General WordPress Meetup

We’re famous! Well, famous enough to have the talented Benjamin S. Hammond record our last Meetup. This impromptu recording in our new space was done by the fine folks over at STLTechTalk.com.

You can check out the first part below, and the rest on STL Tech Talk’s site.

They wanted to help us spread the word and we appreciate the support. Be sure to check out the rest of STLTechTalk.com and their podcasts!

Thanks to J.J., Ben, and everyone for coming out, we had a great meetup and look forward to seeing you all in August!

P.S. Benjamin, the fine gentlemen behind the camera, is a film producer and director. Check out his short film “Misery Mountain“. It’s a bit spooky, so make sure you watch it with headphones late at night – after the kids have gone to bed.

The many, many uses of Advanced Custom Fields

Editors note: This is a guest post by Brian Goldstein. Brian is a freelance WordPress developer in University City. He’s also nearly completely self-taught.  To see some of his work or to get in touch,  check out briankappgoldstein.comIf you’d like to be a guest writer here on STL WP, let us know.

brian-treehouse

There are a few plugins I tend to use on just about every WordPress install I do – for me or for a client.  I always use a back-up plugin, SEO by Yoast, and I’ll almost always use Advanced Custom Fields.

As a developer or a designer, it’s tempting to hide everything away from your clients, so they can’t break the site you’ve just built. ACF helps maintain the design and code integrity of the site while giving your client a way to update content without you. It uses the same logic as the WordPress Loop, so implementation and troubleshooting is simple.

In this article I’ll show 3 simple use cases from a few sites I’ve worked on recently.

Example 1

A common way to use ACF is with another popular plugin, Custom Post Types UI which makes creating custom post types a breeze. Once you create a custom post type, you then create the field groups you want to use and then make them available only for that post type. Once you enter in all the information, be it text, images, or video, you write a php loop calling in those custom post types. Here’s a more concrete example:

ACF_Example

Here, each of these boxes of content are custom post types. One advantage is that once your client “gets” how to make a new blog post, they also know how to change a custom post type. Here’s a screenshot of the editing view of one of these custom post types.

ACF_Editing

As you can see, instead of the standard WYSIWYG (What You See Is What You Get) content editor, you can show the custom fields. ACFs documentation is a clear and an excellent resource.

After you enter the content for each custom post type, we’re ready to edit our theme files to dynamically loop in our custom post types.

On this project, because I also want to display that content elsewhere, it’s inside content-services.php, not the service.php template file. In this case, they are closely related, as we’ll see.

Here is the code for the query that calls in content-services.php on the service.php template :

We open a php block and define an array with the post type we want, then query that array in our loop. The loop pulls in our content-services.php file, where the code that pulls in our fields live. That code looks like this:

Every time you see “the_field()”, that’s pulling in the information you entered in your custom post type. Because the loop ends in services.php and this is inside that loop, you only need to make sure you close each php block, not the loop itself.

Example 2

This example and the next require purchasing the repeater field add-on to ACF. It’s one of the few premium plugins I’d ever recommend buying.

Using the repeater add-on makes displaying a lot of the same kind of information super simple.

For instance, on a restaurant site I recently built, the client needs to be able to change their menu without calling me each time they want to update a menu item. So I built out the menus using ACF’s repeater function.

Each menu section was its’ own field group – so they could add or remove the groups at will. Then, using the repeater I created 2 or 3 sub fields depending on the menu section. Next, I entered in all the data for those menu items – the name of the item, the description, and the price. Finally, it was time to code it out. Here’s what that looked like. These are inside a container div, which has at least one row, and it’s broken into 2 columns in the bootstrap grid, for some context.

Similar logic – you’re telling it to find the field group app here, and if there are rows, while there are rows, to display the sub fields Item, Price and Description.

Example 3

Using ACF repeater to dynamically insert images into a carousel.

Again, similar code: creating a loop that checks for the field, and then if there is data for the subfield, injects it into the source attribute of the img in the carousel. Because it’s just PHP, you can use it just like you use other WP tags. The client can use the photos they want to use without my involvement. You can see this example and the previous example live on plantershousestl.com.

Truth is, I haven’t even scratched the surface of what ACF can do. If you have an ingenious use for ACF, I’d love to hear from you. ACF’s simple code, easy integration on the WP dashboard, and versatility into any design you can imagine make it a go to plugin for me.

Brian Goldstein, freelance WordPress developer
briankappgoldstein.com
@briangoldstein

WordCamp St. Louis 2014 Videos Coming Online

We just got an email from the fine folks at WordPress.tv letting us know that the first of the recorded sessions from WordCamp St. Louis 2014 are now online.

The first one is from Chris Koerner and covers How to Get Involved in the WordPress Community.

As the rest of the videos are edited, uploaded, and approved they will show up under the WordCamp St. Louis 2014 page.

A big thanks to Chris Miller for agreeing to help edit and produce the videos. A hearty thanks to all the volunteers who helped to record the sessions throughout the day. Last, but not least, a big hug to the folks at WordPress.tv for hosting our videos for the world to see.

If anyone is interested in adding subtitles or translations for not only these videos, but any others on WordPress.tv, you should get involved!

We’re now a Member of the WordPress Meetup Chapter Program

We’re now a proud member of the WordPress Meetup Chapter Program.

What does this mean? Well first, our Meetup.com fee is now covered by the fine folks at the WordPress Foundation. That means we don’t have to raise funds or charge admission to cover the cost. It also means we’re not at the mercy of a sponsor to cover this cost every year. This will also result in more visibility to our group, and other benefits to organizing events and activities.

We are still free to pursue sponsorships and the like, and run our group as we have for the past 4 years  – open, inclusive, free, and fun.

You can see a list of all the other Meetups in the chapter program (right sidebar) or a list of all WordPress Meeups on Meetup.com.

A small sliver of hubris – we’re also the 71st largest (out of 599) WordPress Meetup Group! (UpdateI misread that list. We’re actually #92!)

Themes and Plugins – Notes from the July 2014 General WordPress Meetup

After a roller coaster of scheduling fun we had our first Meetup in our new location at Lab1500 (home of Pushup). We talked about Themes and Plugins. For those who couldn’t make it we put together some notes from the evening’s presentations. For those of you would did make it, feel free to add your own thoughts via the comments below!

First up, Bob Barker shared with us an official Bob Barker Whitepaper. Here’s the copy from his handout.


Just another Bob Barker Whitepaper. Whitepaper (defined): useless or minimally valuable information that someone distributes so as to obtain your email address in order to send even more junk of even less value (aka fodder).

Places to check out… 

  • Spybar  – a handy toolbar that shows you the software (and plugins) used to build the site you’re visiting.
  • WordPress Theme Generator
    •  (ed note: Chris Miller also mentioned Headway as a similar solution)
  • WPMU 
  • iThemes

Looking for the awesome WordPress themes? Here’s the place to find them! 

http://www.wordpress.org/themes/

As of: 7-16-2014 2,620 THEMES, 106,186,898 DOWNLOADS, AND COUNTING

Looking for the awesome WordPress plugins? Find them here!

http://wordpress.org/plugins/ 

32,251 PLUGINS 695,392,281 DOWNLOADS, AND COUNTING 

Disclaimer: All information and advice provided by Bob Barker, Mid-American Marketing Associates, The Barker Companies, Their affiliates, associates, Their Foundations, employees, or associates of any of Bob’s companies are NOT warranted or carry any guarantee whatsoever. Please seek the professional advice of an attorney or accountant before proceeding with any endeavors as a result from information provided or questions answered; we do NOT guarantee or give any warranty of the information we provide. Please proceed at your own risk.


Chris K. (that’s me) then talked about the various kinds of themes.

From the most raw and basic (and heavy code knowledge to use), to most advanced and determined (with little code editing) there are generally 4 different kind of themes.

  • Starter Themes
  • Regular Themes
  • Child Themes
  • Theme Frameworks

Starter themes

Starter themes are the raw stuff of theme design and function. Many are minimal, barebones themes that you would use to customize and develop up on.  Most have few (or no) design decisions made beforehand. So no pre-defined colors, layout, grid, etc.

A few popular starter themes are:

A starter theme should probably not be your first theme to muck with. Instead I recommend you take an existing Regular Theme and play with it first.

Read more:

  • https://thethemefoundry.com/blog/wordpress-starter-theme/

Regular Themes

These are the majority of themes you’ll find on wordpress.org, elegantthemes, themeforest, etc. In most cases they are well build and well designed themes that have a certain visual appearance (trendy, retro, dark, earthy, etc.) and purpose (photography, real estate, blogging, e-commerce, etc.).

For most of these themes, many design, layout, and functionality decisions have been made for you.  Most will offer some customization via the theme customizer, but to really change things up you’re looking at building a child theme and getting your hands dirty with code.

Child Themes

So let’s say you download a regular theme, make some changes, and maybe even dip into the css or functions.php to add some custom functionality or style. Then an update to that theme is released. Being a good WordPress owner, you click the big update button.

What happens?

Those custom changes are overwritten with that update. Whoops.

Let’s say you get into custom post types, or custom fields – some fairly advanced stuff. How do you keep those changes across updates to your themes? Especially with advanced themes (like the frameworks mentioned below) there are security risks with not updating – updating is good!

The answer? You should create a child theme!

What is a child theme? Like real children, they need a parent to survive and they inherent traits and capabilities from that parent theme.

A child theme allows you to modify an existing theme (even a starter theme. They too have updates!) without worrying about your changes being overwritten with theme updates.

A basic child theme is as simple as having only one file – style.css. From there you can modify any additional files from your parent theme. header.php, single.php, heck even functions.php!

There’s a great article on the codex on creating a child theme. Remember, files (and their modifications) in a child them override the parent theme files, but not overwrite them. Meaning child themes are a great way to take apart an existing theme to see how it works, without making your changes permanent.

For example, let’s say you wanted to modify the footer from a them you found on WordPress.org. You could copy the footer.php from your parent them into your child theme and edit to your heart’s content. When your site is visited, your custom footer.php is loaded in place of the existing file!

Read more about child themes:

Theme Frameworks

Theme frameworks are like a micro eco-system within WordPress. There are tons of options, development hooks, and extensions outside of the stuff you normally would do with vanilla WordPress and a traditional theme.

Some theme frameworks have options that you’d normally see in separate plugins included as part of the framework. SEO options, custom widgets, layout options, security, support, etc.

Generally, frameworks have many custom features and functions that WordPress doesn’t offer out of the box. The catch is that many have a financial cost, and require (or work best with) a smaller selection of themes.

Genesis – one of the larger frameworks available. It has a large user and developer community, many Genesis-specific themes and some brilliant features making managing content, layout, and design easy without touching code.

Thematic – an open-source theme framework

Read more:

Choosing Themes and Plugins

We then talked a little about choosing themes and plugins for use. A few things we suggested were:

  • Start at wordpress.org
  • Read reviews
  • Look at how frequently the theme is updated
  • Check to see if it has the features you need – like being responsive.

Other resources for finding themes include:

Some of my favorite Themes

Plugins

Plugins extend WordPress and new and useful ways. Plugins operate using something called a hook to insert themselves into WordPress.

Hooks basically add some code using either an action or a filter. A plugin that operates on an action works when an event happens – you load the admin dashboard, save a page, etc. Filters happen when you query the database for information – like rendering a page, or a list of pages in a category, etc.

The codex (once again!) has a great entry on Hooks.

Some plugins are very advanced in what they do. They can totally extend WordPress in new directions, giving it capabilities it didn’t have. Some examples:

Read more on plugins

One last thing, in WordPress 4.0 coming in August there is an update on how you search and install plugins. You can read a little about the 4.0 update at WordPress.org.

Like these notes? Join us at our next meetup. They’re free, welcoming meetings where we share and learn together. Find out more at meetup.com.

Location Change for General WordPress Meetup

A quick update. We won’t be having our General WordPress meetup at goBrandgo! moving forward. We’d like to thank the folks at GBG for the past 4 years of being gracious hosts and providing our rag-tag group a place to hang our hat. Thank you and good luck to you all in your future endeavors.

We were going to announce this at our last meetup there tomorrow night, but there was a scheduling snafu that has us moving a month earlier. I apologize for the short notice and hope everyone can still make it.

The leaders at GBG were kind enough to get us in contact with Dan Lohman at Pushup and Lab1500.  I met with Dan and Lindi and we talked about giving Lab1500 a chance. They have a nice space, and the location is right in the heart of the lively activity on Washington Ave.

The plan was to let the community know about our need to find a new home and see if Lab1500 would be a good fit. Since we’re moving a little sooner than anticipated we hope you understand and appreciate your feedback and thoughts.

We’re also going to take this opportunity to look at the time and date for the General meetup. Does the 3rd Wednesday of the month at 6pm still work for everyone? Join us tomorrow night and we’ll figure it out together.

Meetup Event Details

STL Tech Talk Visits STL WordPress

If you’ve been to the last few of our Meeups (both the Dev and General meetings) you may have noticed JJ Hammond and his crew. They run a technology news and community site for the St. Louis area called STL Tech Talk.

A few weeks ago JJ wrote up a nice little introduction to our group. You should check it out, but to whet your appetite here’s a choice quote.

The group was full of people from different walks of life. A real estate agent, an attorney, a mailman, an airplane pilot, and web developers. I really feel confident that anyone would fit in here. I also was really satisfied with the turn out, and the desire from everyone to learn more about how WordPress can help them solve problems.

JJ and the rest of his crew have a nice sit over at STL Tech Talk. It’s a great place to learn about current trends, upcoming events, and the pulse of the tech community in St. Louis. Naturally, they’re using WordPress to host the site and their podcasts offer a trove of great interviews and discussions.

Thanks to JJ for visiting out meetups and helping to spread information about our great group.

 

Get the Word Out – A Call for Writers

We’re looking for folks in the St. Louis community to be guest writers here on  The St. Louis WordPress Community site.

Why would you want to write? It’s a great opportunity to get feedback, share ideas, toot your own horn about a project you just finished, talk about your company or services, or other wise geek out with a group of like-minded WordPressers.

Feel free to talk about your workflow, best practices, favorite plugin, tips and tricks, integration magic – you name it.

If you, or someone you know, would like to have an opportunity to share their thoughts fill out the form and we’ll get you setup.

There are (only) three rules.

  • It’s has to be about WordPress in some relatable way (talking about CSS tips, or good color theory are OK)
  • It’s positive in nature (no “Drupal Sucks” or “Clients are Goobers” type posts)
  • It’s honest (no crazy pyramid schemes)

Photo by David – licensed under Creative Commons

Community Features

You might be asking yourself, “What’s so great about this new community site, stlwp.org?”. Well, let me tell you about the things we have to offer.

Forums

Get your questions answered in the forums by one of your very own knowledgeable community members.

Groups

Got a particular topic you like about WordPress? Find a group with that same interest, or create your own!

Blog

Got something to write about? Submit an idea and we’ll set you up as an author on the site and you can help build the community!

Suggestions

We are very open to suggestions on how to make the community better. Feel free to contact us (or leave a comment below) with other ideas you have to improve the community!

Photo by Susanne Nilsson – licensed under Creative Commons