Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Portfolio widget problem on homepage #42912

    First, thank you very much for responding Dude. I appreciate your time and input. I completely understand this is beyond the scope of the support forum, and portfolio widgets aren’t included with the theme. However, would you mind revisiting your original thread regarding this same question someone else had posted?

    http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts

    That is where you first offered a portfolio widget as a modification. Your final response, you’d said you’d figured out the problem with the category filter not working – but the solution wasn’t listed. I’m wondering if you still recall what the solution was?

    Also, can I email you directly to discuss the freelance assistance on this?

    Many thanks.

    in reply to: Portfolio widget problem on homepage #42910

    Please. I realize I am probably being buried by support in hopes of disappearing. I paid for this theme, and I’ve asked one support question and was provided a solution that didn’t match my inquiry or desired intent. I don’t think I’m being out of line by asking for clarification. I’ve even tried to help others needing support. Again, Dude alluded to the fact that there was a solution for this in another poster’s thread – but the solution itself wasn’t listed there. If there is no solution, you can simply say that and I’ll quit checking back here every hour in hopes that someone will answer me.

    in reply to: installing the theme #43903

    I’ll try and help. First Click the little down-arrow to the right of the ‘Appearance’ title in your left-hand sidebar. A drop-down list will list a series of links, from this click ‘Themes’. Now if you look back up toward the top of the page, you’ll see the title ‘Manage Themes’ and directly to the right, you see another grayed out tab that says ‘Install Themes’. Click that tab, and once that page loads you’ll immediately below the tab you should see the following options in small letters “Search | Upload | Featured | Newest | Recently Updated”. Click on the one that says ‘Upload’. That will then show you a browse bar, above it should read ‘Install a theme in .zip format’, click the ‘Browse’ button below that and find the .zip file you’ve downloaded on your computer.

    Hope this helps.

    in reply to: Portfolio widget problem on homepage #42909

    This would be the sidebar widget code that doesn’t seem to be filtering by category correctly:

    <?php
    /* Add our function to the widgets_init hook. */
    add_action( 'widgets_init', 'kriesi_sidebar_portfolio_widget' );

    /* Function that registers our widget. */
    function kriesi_sidebar_portfolio_widget() {
    global $kriesiaddwidget;
    $kriesiaddwidget = 0;
    register_widget( 'Kriesi_sidebar_portfolio_Widget' );
    }

    class Kriesi_sidebar_portfolio_Widget extends WP_Widget {
    function Kriesi_sidebar_portfolio_Widget()
    {
    $widget_ops = array('classname' => 'community_news', 'description' => 'A Sidebar widget to display posts in your sidebar' );

    $this->WP_Widget( 'community_news', THEMENAME.' Sidebar Portfolio', $widget_ops );
    }

    function widget($args, $instance)
    {
    global $k_option;
    extract($args, EXTR_SKIP);
    echo $before_widget;

    $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
    $count = empty($instance['count']) ? '' : apply_filters('widget_entry_title', $instance['count']);
    $cat = empty($instance['cat']) ? '' : apply_filters('widget_comments_title', $instance['cat']);

    if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };

    if (!empty($cat))

    {
    $array_cat = explode(",", $cat);
    $myquery = array(
    'posts_per_page'=> $count,
    'tax_query' => array(
    array(
    'taxonomy' => 'portfolio_entries',
    'field' => 'id',
    'terms' => $array_cat ,
    'operator' => 'IN'
    )
    )
    );

    }else{

    $myquery = 'post_type=portfolio&taxonomy=portfolio_entries&posts_per_page='.$count;

    }

    $additional_loop = new WP_Query($myquery);
    if($additional_loop->have_posts()) :
    while ($additional_loop->have_posts()) : $additional_loop->the_post();

    $small_prev = kriesi_post_thumb($post->ID, array('size'=> array('S'),
    'display_link' => array('permalink'),
    'wh' => $k_option['custom']['imgSize']['S'],
    'img_attr' => array('class'=>'rounded alignleft'),
    'link_attr' => array('class'=>'alignleft preloading_background')
    ));
    ?>

    <div class="entry box_entry">
    <h4>
    <a>" rel="bookmark" title="<?php _e('Permanent Link:','cleancut')?> <?php the_title(); ?>">
    <?php the_title(); ?>
    </a>
    </h4>

    <?php
    if($small_prev) echo $small_prev;
    the_excerpt('Read more'); ?>
    </div>

    <?php
    endwhile;
    endif;

    echo $after_widget;

    }

    function update($new_instance, $old_instance)
    {
    $instance = $old_instance;
    $instance['title'] = strip_tags($new_instance['title']);
    $instance['count'] = strip_tags($new_instance['count']);
    $instance['cat'] = strip_tags($new_instance['cat']);
    return $instance;
    }

    function form($instance)
    {
    $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'count' => '', 'cat' => '' ) );
    $title = strip_tags($instance['title']);
    $count = strip_tags($instance['count']);
    $cat = strip_tags($instance['cat']);
    ?>
    <p><label for="<?php echo $this->get_field_id('title'); ?>">Title:
    <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>

    <p><label for="<?php echo $this->get_field_id('count'); ?>">How many entries do you want to display:
    <input class="widefat" id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="text" value="<?php echo attribute_escape($count); ?>" /></label></p>

    <p><label for="<?php echo $this->get_field_id('cat'); ?>">Enter the ids of the categories you want to display, separate them by comma:
    <input class="widefat" id="<?php echo $this->get_field_id('cat'); ?>" name="<?php echo $this->get_field_name('cat'); ?>" type="text" value="<?php echo attribute_escape($cat); ?>" /></label></p>

    <?php
    }
    }

    in reply to: Portfolio widget problem on homepage #42908

    bump – still would really love to hear a solution for why the category filter doesn’t work on sidebar_portfolio widget.

    in reply to: Portfolio widget problem on homepage #42907

    Hi James,

    Thanks for the follow-up, I have went ahead and put your suggestions into effect and the result is I’m now getting a duplication of the testimonial area that is filling up with my portfolio items. This isn’t the solution I was hoping for, but I appreciate the effort. I was really hoping to maintain the same appearance and functionality of the widgetized posts. In my original edits, it was querying and formatting correctly, but the category filter just wasn’t working properly – which is what I was really hoping to get help on.

    I’ve posted a pic of what occured with your suggested solution, which is viewable here (http://www.stations-studio.com/_ForSupport/SuggestedCode_Implemented.png) to ensure you I’ve attempted to incorporate your suggestions and appreciate your effort. Unfortunately, it’s just not what I was really asking for in my original post of this thread.

    I am mainly trying to understand why the category filter wasn’t working for the meta boxes and remedy that.

    After spending quite a bit of time searching I found the same problem was posed here by someone else:

    http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts

    ‘Dude’ had closed the topic in his last response there, saying he’d posted a modified query code, but I didn’t see the actual code anywhere in that post – which is why I re-posted my similar question.

    in reply to: Portfolio widget problem on homepage #42905

    Hey James,

    Thanks so much for the response. I have a couple follow-ups to your solution. Admittedly, I know very little about PHP, so please be patient with me as I try to understand.

    1 – I’m assuming these changes would need to take place in the index.php file?

    2 – Do I copy ALL of the code from the second snippet you included above or just a portion to replace with the entire snippet of the first box?

    3 – Will this solution auto-populate the boxes with recent portfolio items or will I have manually be updating it each time I want a new portfolio piece to appear on the front page?

    4 – Will this maintain the same layout as the widget option? (square thumbnail to the left – text to the right, four entries per row, 2 rows)

    Thanks again for your help with this!

    in reply to: Portfolio widget problem on homepage #42903

    I’ve posted screenshots of my dashboard items pertaining to this question here:

    http://www.stations-studio.com/_ForSupport

Viewing 8 posts - 1 through 8 (of 8 total)