Welcome to PressWork!

Want to ask a question or join the discussion? Great! Join now.

In this Discussion

Sliedshow not showing post content
  • Hi,

    I have installed presswork theme on my blog.
    The problem i am facing is that in Slideshows widgets, No text is showing.

    I am trying to find out problem but failed. kindly guide what the problem can be?

    you can visit my blog http://the-netpreneur.com/blog

    Check "Slideshows" on right sidebar on top.

    also check my settings through attached image
    Untitled.png
    768 x 576 - 22K
    Post edited by thenetpreneur at 2012-02-02 10:27:42
  • The problem that you are experiencing is most likely because you have Presswork 1.0.3. You need the latest version (1.0.4.1).

    Wordpress takes a certain time to validate themes and plugins. Therefore, it is not available at the moment. To download the latest version, go to the Presswork's Github (link below), decompress and replace the current Presswork directory with the new one.

    *Please note that if you have applied certain modifications to the Presswork core files, you will need to backup and copy these modifications in order to have them in the latest version.

    Here is the link for the latest version of Presswork: https://github.com/digibomb/PressWork.
    Post edited by Windmill at 2012-02-02 10:47:12
  • than you for your help.

    I have installed the latest theme but still the same problem.

  • Set your Slideshow Type to "Scroll"
    image PressWork Support Moderator
  • yes, it is working with scroll, but i need slider option
  • This is a dirty hack to get what you want, there are probably better ways of achieving it

    You'll need to use a child theme : http://presswork.me/2011/creating-a-child-theme-for-presswork/

    In your child theme directory create a functions.php file, edit it and paste the following code :
    <?php
    /**
    * Modify slideshow functionality
    *
    * An excerpt is displayed if no image is present in the Slide Mode
    * Probably more elegant ways to do this..
    *
    */

    function pw_slideshow($args = '') {
    global $wp_scripts;
    $defaults = array(
    'type' => 'scrollerota',
    'cat' => '',
    'postnum' => 4,
    'width' => pw_theme_option('content_width'),
    'height' => 260,
    'excerpt' => 35
    );
    $r = wp_parse_args( $args, $defaults );
    extract( $r, EXTR_SKIP );
    $name = $r['type'];
     
    $wp_scripts->in_footer[] = 'pw_'.$name.'_js';
    $wp_scripts->queue[] = 'pw_'.$name.'_js';
    $wp_scripts->groups['pw_'.$name.'_js'] = 1;
     
    if(!empty($r['cat'])) {
    $featuredcat = $r['cat'];
    $posts = array(
    "posts_per_page"=>$r['postnum'],
    "cat"=>$featuredcat,
    "ignore_sticky_posts" => 1
    );
    } else {
    $posts = array(
    "posts_per_page"=>$r['postnum'],
    "ignore_sticky_posts" => 1
    );
    }
     
    $featured = new WP_Query();
    $featured->query($posts);
    ?>
    <div id="<?php echo $r['type']; ?>" class="pw-slideshow" style="height: <?php echo $r['height']; ?>px;">
    <div class="slideshow-content" style="height: <?php echo $r['height']; ?>px;">
    <ul class="images">
    <?php while ($featured->have_posts()) : $featured->the_post(); ?>
    <li>
    <?php
     
    if(function_exists('has_post_thumbnail') && has_post_thumbnail()) {
    echo '<a href="'.get_permalink().'">';
    the_post_thumbnail('full');
    echo '</a>';
    }
    // Display the excerpt and make it clickable
    echo '<a href="'.get_permalink().'">';
    the_excerpt();
    echo '</a>';?>
    </li>
    <?php endwhile; ?>
    </ul>
    <ul class="text">
    <?php while ($featured->have_posts()) : $featured->the_post(); ?>
    <li>
    <?php
    if($r['type']=="faderota") {
    echo '<header><h4><a href="'.get_permalink().'">'.esc_attr(get_the_title()).'</a></h4></header>';
    } else {
    echo '<header><h4><a href="'.get_permalink().'">'.esc_attr(get_the_title()).'</a></h4></header>';
    echo pw_excerpt($r['excerpt']);
    ?>
    <footer><a href="<?php the_permalink(); ?>" class="readmore"><?php _e('Read more', "presswork"); ?></a></footer>
    <?php } ?>
    </li>
    <?php endwhile; ?>
    </ul>
    </div><!-- end .slideshow-content -->
    </div><!-- end #slideshow -->
    <?php
    }
    ?>


    It's tested and it works.
    image PressWork Support Moderator
  • Thank you. it is now working after creating child theme.