Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /** This is the begining of my experiment*/
- ?>
- <?php
- // We need to tell WordPress to look for our custom taxonomy lists
- $hp3_topic_lang_text = "";
- // Then we need to tell it which one we want in particular and store it for use in our code.
- $hp3_top_lang_list = get_the_term_list( $term->ID, 'hp3_top_lang', 'and contains information about ', ', ', '' );
- if ( '' != $hp3_top_lang_list ) {
- $hp3_topic_lang_text .= "$hp3_top_lang_list\n";
- }
- // Now we need to tell WordPress exactly how we want to display the tag
- if ( '' != $hp3_topic_lang_text ) {
- ?>
- <!--// This just let's WordPress know that there's an else argument. It will remove the 'In this post' if no artists have been tagged. -->
- <?
- }
- ?>
- <?php
- // We need to tell WordPress to look for our custom taxonomy lists
- $hp3_content_lang_text = "";
- // Then we need to tell it which one we want in particular and store it for use in our code.
- $hp3_cont_lang_list = get_the_term_list( $term->ID, 'hp3_cont_lang', '<!-- <strong>This entry has content written in:</strong> --> ', ', ', '' );
- if ( '' != $hp3_cont_lang_list ) {
- $hp3_content_lang_text .= "$hp3_cont_lang_list\n";
- }
- // Now we need to tell WordPress exactly how we want to display the tag
- if ( '' != $hp3_content_lang_text ) {
- ?>
- <div class="entry-utility">
- This entry is written in <?php echo $hp3_content_lang_text; echo $hp3_topic_lang_text; ?>.
- </div>
- <!--// This just let's WordPress know that there's an else argument. It will remove the 'In this post' if no artists have been tagged. -->
- <?
- }
- ?>
- <?php
- /** This is the End of my experiment*/
- ?>
- <?php
- /* translators: used between list items, there is a space after the comma */
- $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
- /* translators: used between list items, there is a space after the comma */
- $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
- if ( '' != $tag_list ) {
- $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
- } elseif ( '' != $categories_list ) {
- $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
- } else {
- $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
- }
- printf(
- $utility_text,
- $categories_list,
- $tag_list,
- esc_url( get_permalink() ),
- the_title_attribute( 'echo=0' ),
- get_the_author(),
- esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
- );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement