PTC and CFC
-
Hello
If I have the Post Type Creator code in one page and after that code a Custom File Creator this last one doesn’t work and doesn’t show up. Can you tell me why?
Where’s and example:
‘
<div class=”top-servicos”><?php $args = array( ‘post_type’ => ‘servicos’, ‘posts_per_page’ => 3 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
echo ‘<div class=”coluna-servicos”>’;
echo ‘<a href=”‘;
the_permalink();
echo ‘”>’;
echo ‘<h3>’;
the_title();
echo ‘</h3>’;
the_excerpt();
echo ‘<div class=”mais”>Mais</div>’;
echo ”;
echo ‘</div>’;
endwhile;
?></div><!–top-servicos–>
<?php$mensagem = get_post_meta( $post->ID, ‘mensagem’, true );
foreach( $mensagem as $mensagem){
echo ‘<div class=”mensagem”>’;
$attachment_image = wp_get_attachment_image_src($mensagem[‘imagem’], ‘banner’);
echo ‘<img src=”‘. $attachment_image[0].'”/>’;
echo ‘<div class=”content-mensagem”>’;
echo ‘<h3>’ . $mensagem[‘titulo’] . ‘</h3>’;
echo ‘<p>’ . $mensagem[‘texto’] . ‘</p>’;
echo ‘<div class=”pastor”>’ . $mensagem[‘nome’] . ‘<span> – ‘ . $mensagem[‘cargo’] . ‘</span></div>’;
echo ‘</div><!–content-mensagem–>’;
echo ‘</div><!–mensagem–>’;
}?>
‘https://www.ads-software.com/plugins/wck-custom-fields-and-custom-post-types-creator/
- The topic ‘PTC and CFC’ is closed to new replies.