Thank you for your answer.
with theme fourteen i insert just after
`get_template_part( 'content', get_post_format() );`
<?php
/**
* The Template for displaying all single posts
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
if( function_exists('get_field')) {
if(get_field('titre')) {
echo '<p>' . get_field('titre') . '</p>';
}
}
Is good my display field is good (see below)
But i don't know insert this code for theme themler . i don't find get_template_part( 'content', get_post_format() );
for insert my code.
My field is not found the right place ( see below)
thx for help
deuns26
ps: if we could THEMLER in php in html code to echo.(his would be the dream)
Thank you for your answer.
with theme fourteen i insert just after
`get_template_part( 'content', get_post_format() );`
<?php
/**
* The Template for displaying all single posts
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
if( function_exists('get_field')) {
if(get_field('titre')) {
echo '<p>' . get_field('titre') . '</p>';
}
}
Is good my display field is good (see below)![is good for fourteen theme][1]
But i don't know insert this code for theme themler . i don't find `get_template_part( 'content', get_post_format() );` for insert my code.
My field is not found the right place ( see below)
![not good with themler][2]
[1]: http://s22.postimg.org/bc2p9gsi9/theme_fourteen.jpg
[2]: http://s23.postimg.org/vd62mao7f/theme_themler.jpg
thx for help
deuns26
ps: if we could THEMLER in php in html code to echo.(his would be the dream)
Last edited 27 August 2015 by deunsdenis