私はうまくいかないようなことがありました。私はエントリータイトルについて、フロントページに各ポートフォリオ項目の上に(ホバー上に)表示されています。Wordpress:Move entry-title
ここでは、私が何を意味するかを見ることができます。 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 ありがとうございます!
カテゴリと日付でエントリータイトルを表示するだけです。 –
はい、それは計画ですが、どうすればいいのか分かりません。 –