だから私は Orman Clarke の 'Classica' ワードプレス テーマに完全に恋をしていますが、事前にフィルター処理されたコンテンツにリンクできないことが常に問題でした。残念ながら、私は 1.1.4 リリースをダウンロードしました (そして、ある程度の解決策を見つけました) が、1.2 にアップグレードして以来、意図したとおりに流砂を機能させることができていません。「すべて」は機能しますが、実際のフィルターはどれも機能しません。コンテンツは単に消えます。
1.1.4 では、パーマリンクの回避策とともに、quicksand/jq フィルタリングが機能していました。
古いテンプレートから新しいテンプレートにコードをそのままコピーしましたが、問題は解決しません。両方のバージョンを並べて実行し、ソース コードを比較してみましたが、違いはわかりません。問題を解決する方法を確認するために、ファイルを古いものから新しいものへと 1 つずつ体系的にコピーしました。
ちょっとしたピクルスで、本当に-誰かが私のコードのどこに問題があるかを指摘できれば..それは大歓迎です。
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>