679 posts Cudazi
  • Top Monthly Author
  • Weekly Top Seller
  • Elite Author
  • 6 Years of Membership
+13 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
  • 5 Years of Membership
  • Collector Level 1
  • Exclusive Author
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
  • 5 Years of Membership
  • Affiliate Level 2
  • Collector Level 2
  • Exclusive Author
+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).

679 posts Cudazi
  • Top Monthly Author
  • Weekly Top Seller
  • Elite Author
  • 6 Years of Membership
+13 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
  • 5 Years of Membership
  • Affiliate Level 1
  • Exclusive Author
healmasud
says

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

63 posts
  • 5 Years of Membership
  • Author Level 2
  • Collector Level 1
  • Exclusive Author
IWDstudios
says

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

by
by
by
by
by
by