677 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Has referred 500+ members
+11 more
cudazi Envato team says

Hello!

I’m looking for opinions from buyers (and sellers!) on populating WordPress content sliders with content.

Although there’s not really a correct or incorrect method, I would love to hear your preferred method so we can make your life a little easier when using themes.

A. ) Pull images from a category of posts with a featured image set

B. ) Grab all attached images of a specific page/post

C. ) Enter the images/links via a theme settings page

D. ) Enter images/urls via custom fields

Thanks in advance for any votes or opinions. :)

116 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
  • Located in Europe
  • Sells items exclusively on Envato Market
dejans7 says

A. ) + C. )

Because i want to have both pages and posts in content slider or maybe even something external. So the best option IMO would be to show all the posts from one category + the images/link/descriptions entered via settings page.

1383 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
wpCanyonThemes says

None of the above :)

In the theme i’m developing now it’s gonna be made using shortcodes. The content will be inserted manually but there will also be a feature to pull the content from blog posts and portfolio posts (latest or by IDs the user will specify).

677 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Has referred 500+ members
+11 more
cudazi Envato team says

None of the above :) In the theme i’m developing now it’s gonna be made using shortcodes. The content will be inserted manually but there will also be a feature to pull the content from blog posts and portfolio posts (latest or by IDs the user will specify).

Kinda sounds like was I’m brewing up too, I’m just worried it’ll generate a lot of support questions vs a simple UI. It’s that tricky balance of features, flexibility, ease of use…

Just a dummy mockup...

// This would generate a slider from featured images/attachments based on
// settings given you could enter in content, the header or a text widget...
[slider settings='x']

// This would generate a slider from the content inside the tag...
[slider settings='x']
   [slide]<img src="x' alt='x' />[/slide]
   [slide]img<img src="x' alt='x' />[/slide]
   [slide]Text/video/html/etc....[/slide]
[/slider]
5 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Sells items exclusively on Envato Market
masud7827 says

C. ) Enter the images/links via a theme settings page, I think this one is the best :)

63 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
IWDstudios says

does anyone actually have a code snippet to show how this is done?

by
by
by
by
by
by