faster is better than slow | Download Swift
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Feature static pages in slider?

  1. #1


    Feature static pages in slider?

    Is it possible to feature static pages instead of posts in the slider? Please advise how.

    Thanks!

  2. #2


    Add this html to your post, notice how image title and the ID of the div are matched
    Code:
    <div id="custom-slider">
    
    <a href="http://localhost/WpDev/?p=1133" title="Testing AdSense loading">
            <img src="http://localhost/WpDev/wp-content/themes/SwiftPremium/images/default.png" class="slide-thubnail" width="936" height="577" title="#post_1133"/></a>
    <a href="http://localhost/WpDev/?p=1118" title="Ok image test">
            <img src="http://localhost/WpDev/wp-content/themes/SwiftPremium/images/default.png" class="slide-thubnail" width="936" height="577" title="#post_1118"/></a>
    </div>
        
    <div id="post_1133" class="nivo-html-caption">
        <h2>Testing AdSense loading</h2>
        <p>jQuery(‘#fuck’).load(‘http://localhost/WpDev/wp-content/uploads/2011/09/6181315141_0b9419e3a4_b-48×48.jpg #content’);</p>
    
    </div>    
        
    <div id="post_1118" class="nivo-html-caption">
        <h2>Ok image test</h2>
        <p>Ok caption</p>
    </div>
    Now add this to footer scripts option in general settings
    Code:
    <script type="text/javascript">
    jQuery(window).load(function() { 			jQuery('#custom-slider').nivoSlider({prevText: '',  		        nextText: '',        controlNav:false, 		        effect:'fade', 		        animSpeed:600, 		        pauseTime:5000 			}); 		});
    </script>

  3. #3


    Sorry, not advanced enough to understand this and make work. Messed around a bit but no success. Please advise how to make the posts redirect to the static page (?page_id=84 for example) or how to feature static pages directly. THANK YOU!!!

  4. #4


    goto swift/lib/includes/ in ftp
    Find the slider you are using
    change this code
    PHP Code:
    if( $swift_options['featured_cat_home'] && $swift_options['featured_cat_home'] != )
    $query='cat="'.$swift_options['featured_cat_home'].'"&showposts='.$swift_options['featured_posts_number_home'];
    else
    $query='&showposts='.$swift_options['featured_posts_number_home'];
    $recentPosts = new WP_Query();
        
    $recentPosts->query($query); 
    to

    PHP Code:
    $query='&post_type=page&showposts='.$swift_options['featured_posts_number_home'];
    $recentPosts = new WP_Query();
        
    $recentPosts->query($query); 

  5. #5


    Thank you for your quick reply! One more question... which slider .php file is for the "Large Image" Featured Slider: 1, 2, or 3?

  6. #6


    3
    If you haven't done any major customization, switch to v6.0.

  7. #7


    Currently using SwiftPremium v0.6
    Last edited by jlolive; 10-14-2011 at 03:23 AM.

  8. #8


    Where can I download v6.0?

  9. #9


    go to the shop, and click on "add/renew subscriptions"

  10. #10


    Can you provide a link? I can't find this option. Thanks

+ Reply to Thread

Similar Threads

  1. Static Pages
    By jamesthompson in forum Support
    Replies: 15
    Last Post: 09-15-2011, 06:20 PM
  2. static content on home page.
    By lukestleger in forum Support
    Replies: 1
    Last Post: 02-18-2010, 01:35 PM
  3. How can I add reply feature on my comments ?
    By squamble in forum Support
    Replies: 1
    Last Post: 02-15-2010, 12:13 AM
  4. Replies: 0
    Last Post: 12-11-2009, 10:22 PM
  5. feature box error
    By gamelevelguides in forum Bug report and suggestions.
    Replies: 1
    Last Post: 10-10-2009, 12:57 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts