• Hi all,

    I’m about 6/7 months into learning WordPress, and by now I’m absolutely fine with developing themes for blogs and the sort of functionality that goes with that type of theme. But now I’m getting ready to develop my first theme that utilises WP as a full CMS (might not even have a blog), and I was hoping I could get some help with a couple of things.

    I’m looking to have a jQuery slider on the homepage, each slide housing different types of content – some text in one, a full image in another and maybe video support in another, but I really don’t know where/how you would pull in that content?

    I want users who download my theme to be able to choose which type of content they have in the slides.

    At the moment I’m trying to figure out how it would work by using custom fields.. pulling in custom field data for each slide wouldn’t be a problem, but how would the user customise that? If I had a custom field id of ‘slider-text’ and the user decided they didn’t want to use text at all.. they’d have to change the cf id in the page.php file?

    And if I’m already using 3 or 4 custom fields to pull in some content elsewhere on the page – away from the main text – wouldn’t it get confusing using so many different custom fields?

    Maybe this sounds stupid. I’d really appreciate any sort of response to get me on the right track to grasping how this would work.

    Cheers,
    Paul.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think what I would do is to define a category for stuff that goes to the home page, or use only the sticky posts and then do something like this :

    <?php if(is_front_page()) {
       // loop calling 5 sticky post excerpts or content with thumbnail image if exists
    } ?>

    However if you use only pages… write or find a plugin that calls 5 pages of your choice (excerpts or full content) and put it on the home page (which you could define in the options).

    There is btw an option “meta_key” in http://codex.wordpress.org/Function_Reference/wp_list_pages which could help sort only the pages that have a certain custom field..

    maybe this helps.

    I think what I would do is to define a category for stuff that goes to the home page, or use only the sticky posts and then do something like this :

    <?php if(is_front_page()) {
       // loop calling 5 sticky post excerpts or content with thumbnail image if exists
    } ?>

    However if you use only pages… write or find a plugin that calls 5 pages of your choice (excerpts or full content) and put it on the home page (which you could define in the options).

    There is btw an option “meta_key” in http://codex.wordpress.org/Function_Reference/wp_list_pages which could help pull in only the pages that have a certain custom field..

    maybe this helps.

    I think what I would do is to define a category for stuff that goes to the home page, or use only the sticky posts and then do something like this :

    if(is_front_page()) {
       // loop calling 5 sticky post excerpts or content with thumbnail image if exists
    }

    However if you use only pages… write or find a plugin that calls 5 pages of your choice (excerpts or full content) and put it on the home page (which you could define in the options).

    There is btw an option “meta_key” in http://codex.wordpress.org/Function_Reference/wp_list_pages which could help sort only the pages that have a certain custom field..

    maybe this helps.

    oops, sorry, there was something wrong here, so you got my answer several times 🙁

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pulling in content for jQuery slider?’ is closed to new replies.