有一些我似乎無法解決的問題。我是關於一個條目標題,它在首頁顯示在每個投資組合項目上(懸停)。WordPress的:移動標題
在這裏你可以看到我的意思; www.untoldworks.com
我所要做的就是移動條目標題,使其顯示符合投資組合項目左側的條目類別&。
據我瞭解的投資組合頁面的條目元佈局模板tags.php中發現
function eris_entry_header() {
if (!is_single() && (!is_search() && ('link' == get_post_format() || 'quote' == get_post_format()))) {
return;
}
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
if (get_the_time('U') !== get_the_modified_time('U')) {
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
}
$edit_post_link = '';
if (is_user_logged_in()) {
$edit_post_link = '<a href="' . esc_url(get_edit_post_link()) . '"></a>';
}
$time_string = sprintf($time_string,
esc_attr(get_the_date('c')),
esc_html(get_the_date()),
esc_attr(get_the_modified_date('c')),
esc_html(get_the_modified_date())
);
$posted_on = sprintf(
esc_html_x('%s', 'post date', 'eris'),
'<a href="' . esc_url(get_permalink()) . '" rel="bookmark">' . $time_string . '</a>'
);
if ('portfolio' == get_post_type()) {
$categories_list = get_the_term_list(get_the_ID(), 'ct_portfolio', '', ' ', '');
} else {
$categories_list = get_the_term_list(get_the_ID(), 'category', '', ' ', '');
}
if (is_single()) {
the_title('<h1 class="entry-title">', '</h1>');
} else {
the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
}
printf('<div class="entry-meta"><span class="category-list">%1$s</span><span class="post-date">%2$s</span><span class="edit-link">%3$s</span></div>', $categories_list, $posted_on, $edit_post_link);}
這將是巨大的,如果條目標題將顯示第一(組合項目所以左下角)在此之後入口類別和之後的日期。
希望有人能想出這件事XD 在此先感謝!
所以你只需要顯示類別和日期的條目標題? –
是的,這是計劃,但我似乎無法弄清楚如何.. –