Permalink post page content.php
-
Hi,
I use the setting of permalink. So imported posts show the internal link to the content.php file – that works.
Now I would like to use a link to the original source using athe following code:
if (is_syndicated()) : the_title( '<h1 class="entry-title">', '</h1>' ); else: the_title( '<h1 class="entry-title"><a href="' . esc_url( the_syndication_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif;
and
if (is_syndicated()) : the_content( sprintf( __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), the_title( '<span class="screen-reader-text">', '</span>', false ) ) ); else: the_content( sprintf( __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), the_title( '<span class="screen-reader-text">', '</span>', false ) ) ); endif;
Any idea how the correct code should look like to get it working?
Many Thanks,
Juergen
- The topic ‘Permalink post page content.php’ is closed to new replies.