Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Mitchell Fargher
Mitchell Fargher
11,634 Points

Wordpress Pages

I am new to Wordpress and am seriously struggling with this idea of "pages" in themes and adding content. When I code everything in plain HTML, CSS , jscript, etc... I can place the content wherever I choose. I am building a Wordpress site now, and the front page was pretty straight forward with all these widgets and a pre-defined layout which was nice, but now I am adding an about page and have no idea how to add content other than just typing it into the add page section and having it just appear like that. For example, what if I want certain content to show up in columns, how do I get them into those columns from the editor? It just seems too to bottom. Add image, type text. Image show up on top text below it. Kinda boring and I know I'm missing something here lol.

Thanks!

2 Answers

Kevin Korte
Kevin Korte
28,149 Points

Two plugins I use heavily when I use wordpress is the Custom Post Types UI plugin, (which you can create custom post types without this plugin in your function.php file, but this plugin is well supported and easier/faster to use), and the Advanced Custom Field plugin.

You may not need a custom post type, but you can use the ACF plugin to create different field types to enter in different kinds of data. For instance, maybe you had another WYSIWYG editor, that you fetched that editors content and showed it in columns. You can do conditional type fields that you can call on to add or show content different.

Now of course this forces you to customize theme template files so the content actually shows up. Which is probably not a big deal for you.

I know WP may seem frustratingly strict, but when you learn the WP ways, it's as flexible about putting what content where, as a non-CMS html, css, and js website you're use to.

Indigo Timber
Indigo Timber
5,388 Points

I would recommend using shortcodes of you want to customise the layout from the page editor inside wordpress. Check out the plugin Shortcodes Ultimate. It's very popular :) Sometimes I add specific IDs from the html section of the editor if I want to add some css to my content.