In my custom page template "portfolio template", I try to get title and content (from text editor). I can get the title, but content returns as empty string ("").
What am I doing wrong?
<?php
/*
Template Name: Portfolio Template
*/
?>
<?php get_header(); ?>
<?php
$portfolio_template_title = get_the_title();
$portfolio_template_content = get_the_content();
?>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire