catchresponsive_page_post_meta

Post/Page Meta for Google Structure Data.

Description

catchresponsive_page_post_meta(); 

Usage

  1. if ( !function_exists( 'catchresponsive_page_post_meta' ) ) { 
  2. require_once '/inc/catchresponsive-core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = catchresponsive_page_post_meta(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/catchresponsive-core.php  
  1. function catchresponsive_page_post_meta() { 
  2. $catchresponsive_author_url = esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ); 
  3.  
  4. $catchresponsive_page_post_meta = '<span class="post-time">' . __( 'Posted on', 'catch-responsive' ) . ' <time class="entry-date updated" datetime="' . esc_attr( get_the_date( 'c' ) ) . '" pubdate>' . esc_html( get_the_date() ) . '</time></span>'; 
  5. $catchresponsive_page_post_meta .= '<span class="post-author">' . __( 'By', 'catch-responsive' ) . ' <span class="author vcard"><a class="url fn n" href="' . $catchresponsive_author_url . '" title="View all posts by ' . get_the_author() . '" rel="author">' .get_the_author() . '</a></span>'; 
  6.  
  7. return $catchresponsive_page_post_meta;