Viewing 1 replies (of 1 total)
  • Plugin Author myCred

    (@designbymerovingi)

    No it’s not. The template tags feature was built for the myCRED Log.

    But you can add support for your post/page content:

    add_filter( 'the_content', 'add_template_tags_in_content' );
    function add_template_tags_in_content( $content )
    {
    	// Load myCRED
    	$mycred = mycred_get_settings();
    
    	// Add support for General template tags:
    	$content = $mycred->template_tags_general( $content );
    
    	// Return the results
    	return $content;
    }

    You can find a complete list of methods you can use though the mycred_get_settings function.

Viewing 1 replies (of 1 total)

The topic ‘Using template tags in pages/posts?’ is closed to new replies.