Здравствуйте, сделал сайт под партнерку. В статьях используется реклама данного интернет магазина. То есть Магазин продает гвозди, а я на своем сайте делаю описание гвоздей и указываю интернет магазин где их можно купить. Нарушаю ли я правила? Спасибо большое за ответ.
Подскажите, пожалуйста, хочу сделать перелинковку. Вот код:
<?
$li = 2;
$postID = $post->ID;
$postDate1 = get_the_time('YmdHis','','',false);
$cat = get_the_category(); $cat = $cat[0]; $cat = $cat->cat_ID;
$catQuery = new WP_Query('showposts=-1&cat='.$cat);
$i = 0;
if ($catQuery->have_posts() && $catQuery->post_count > 1) :
?>
<table style="margin:10px;" align="center" width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<?php
while ($catQuery->have_posts()) : $catQuery->the_post();
$postDate2 = get_the_time('YmdHis','','',false);
if ($postDate2 < $postDate1 && $post->ID != $postID) {
$i++;
if ($i <= $li) {
<td width="200"><center><a style="font-size:13px;color:#888888;" href="<?php the_permalink() ?>" ><?php the_title(); ?></a></center></td><?php
}
endwhile;
$posts = $li - $i;
$cat_count = get_category($cat)->category_count;
if (($cat_count - 1) > $i) {
if ($posts > 0) {
$temp_query = $wp_query;
if (($cat_count - 1) < $li) $posts = $cat_count - 1 - $i;
query_posts('showposts='.$posts.'&cat='.$cat);
if (have_posts()) : while (have_posts()) : the_post();
<td width="200"><center><a style="font-size:13px;color:#888888;" href="<?php the_permalink() ?>" ><?php the_title(); ?></a></center></td>
endwhile; endif;
$wp_query = $temp_query;
</tr>
</table>
<?php endif; wp_reset_query();
Перелинковка до вывода заголовка статьи, вместо хлебных крошек. Но не знаю в какой файл и в какое место вставить. Шаблон стандартный.