2011-09-14 63 views
1

因此,我完全愛上了Orman Clarke的'Classica'wordpress主題,但無法鏈接到預過濾的內容始終是一個問題。不幸的是,我在1.1.4版本中下載了(並且找到了某種解決方案),但是自升級到1.2後,我仍然無法按照預期使用流沙函數。 '全部'有效,但沒有任何實際的過濾器 - 內容簡單消失。jQuery Quicksand - 不過濾?

1.1.4有quicksand/jq過濾沿着永久鏈接解決方案工作。

我將代碼從舊模板直接複製到新的,但這不能解決問題。我試着並行運行兩個版本,並對源代碼進行比較,但我沒有看到任何區別。我甚至系統地將文件從舊到新逐個複製,以查看可以解決問題的方法。

在一個泡菜,真的 - 所以如果任何人都可以指出問題在我的代碼..這將不勝感激。

http://www.colorspace.am/portfolio

除了:

爲我的固定鏈接過濾溶液中的代碼如下。它要求我爲每個過濾器構建一個頁面,但現在已經足夠了。

 <h1 class="page-title"> 
      <?php 
      global $post; 
      if(get_post_meta($post->ID, 'heading_value', true) != ''): 
       echo get_post_meta($post->ID, 'heading_value', true); 
      else: 
       _e('Some of my recent work.', 'framework'); 
      endif; 
      ?> 
     </h1> 

     <!--BEGIN #recent-portfolio .home-recent --> 
     <div id="recent-portfolio" class="home-recent portfolio-recent clearfix"> 

      <?php while (have_posts()) : the_post(); ?> 
      <!--BEGIN .sidebar --> 
      <div class="sidebar"> 
<?php 
$Path=$_SERVER['REQUEST_URI']; 
if ($Path=="/portfolio") 
{ 
echo "<h3>Filter:</h3>"; 
echo "<ul id=\"filter\">"; 
echo "<li class=\"segment-1\"><a data-value=\"all\" href=\"#\">All</a></li>"; 
wp_list_categories(array('title_li' => '', 'taxonomy' => 'skill-type', 'walker' => new    Portfolio_Walker())); 
echo "</ul>"; 
} 
else { 
echo "<a href=\"/portfolio\">← return</a>"; 
} 
?> 
      <!--END .sidebar --> 

      </div> 

      <?php endwhile; ?> 



      <!--BEGIN .recent-wrap --> 

      <div class="recent-wrap"> 



       <ul id="items" class="image-grid"> 



        <?php 
     $count = 1; 
        $query = new WP_Query(); 
        $query_string = 'post_type=portfolio&posts_per_page=-1&orderby=title&order=asc'; 
        if($post->post_name != 'portfolio') $query_string .= '&skill-type=' . $post->post_name; 
        $query->query($query_string); 
        while ($query->have_posts()) : $query->the_post(); 
     $terms = get_the_terms(get_the_ID(), 'skill-type'); 
        ?> 



         <li data-id="id-<?php echo $count; ?>" class="<?php foreach ($terms as $term) { echo strtolower(preg_replace('/\s+/', '-', $term->name)). ' '; } ?>"> 

         <!--BEGIN .hentry --> 
         <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> 

          <div class="post-thumb"> 
           <?php tz_lightbox(get_the_ID()); ?> 
          </div> 

          <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>"> <?php the_title(); ?></a></h2> 

          <!--BEGIN .entry-content --> 
          <div class="entry-content"> 
           <?php the_excerpt(); ?> 
          <!--END .entry-content --> 
          </div> 

         <!--END .hentry--> 
         </div> 

        <?php 
        $count++; 
        ?> 

        </li> 

        <?php endwhile; wp_reset_query(); ?> 

       </ul> 

      <!--END .recent-wrap --> 
      </div> 

     <!--END #recent-portfolio .home-recent --> 
     </div> 

+0

已解決。這是一個問題在functions.php –

+2

添加答案,並在可以時將其標記爲完成 – JamesHalsall

+0

用於過濾的functions.php中的代碼必須與以前的版本交換出來(我認爲我使用了1.2的修補程序) –

回答

1

在functions.php的過濾代碼不得不被換出與以前的版本(我覺得我用1.2的用於修復) - 無其他文件需要修改。

如果我已經知道函數.php被改變了,我可能會先看那裏。