| bio | website | logixstudios.com |
|---|---|---|
| location | Chatham-Kent, Canada | |
| age | 32 | |
| visits | member for | 9 months |
| seen | Aug 11 '12 at 0:15 | |
| stats | profile views | 0 |
Senior developer at Logix.
|
Aug 9 |
answered | How do I add the featured image to the_content after the first paragraph? |
|
Aug 5 |
comment |
Alternating CSS classes for dynamic content I was actually thinking this would be simpler: gist.github.com/3261304 I haven't fully tested the code, but that should go in the page template for the page you want to use as a featured page. It gets the current page's children, then echos out each child's image attachments, also using the modulo to add an even/odd class to the image so you can style it. Let me know if you use it and it works. ;) Just remember to modify the thumbnial size to the size you want to use. |
|
Aug 5 |
answered | Change Post and CPT author on the fly while publish the post |
|
Aug 5 |
awarded | Autobiographer |
|
Aug 5 |
comment |
Alternating CSS classes for dynamic content In that case.. it's still better to grab an array of the child pages via the WP_Query, then ittereate through each page and look to see if that page has any images attached, instead of pulling the content as well.. If for some reason the client adds text content to the child pages that will also be displayed. |
|
Aug 4 |
comment |
Alternating CSS classes for dynamic content Wordpress will generate the css class columns when it loads the gallery, you can choose many options.. just check out codex.wordpress.org/Gallery_Shortcode |
|
Aug 4 |
comment |
Alternating CSS classes for dynamic content Um firstly. I don't know why you're putting images into a post's content and putlling child posts/pages, that doesn't make any sense? WordPress has a "gallery" option in posts when you upload images via the media uploader in the post page, it gives you the option to embed all the images into a gallery which WP automatically generates. There's no need to for your code. So long as you are using the latest version of WordPress. |
|
Aug 4 |
awarded | Teacher |
|
Aug 4 |
answered | Alternating CSS classes for dynamic content |
|
Aug 4 |
answered | get last post's link with SQL query |
|
Aug 3 |
answered | Best practice way to delete user meta data during plugin uninstall? |
|
Aug 3 |
answered | How to build dynamic pages? |