-
I have set up two seperate blog pages with different output.
http://weydelandkaas.nl/categorie/recept-van-de-maand/ontbijt-recepten/
And here: http://weydelandkaas.nl/nieuws/
I have done this with this tutorial: http://demo.bizzthemes.com/bizznis/documentation/tutorials/modify-content-loop/
But on one page I want to show the date and on the other I don’t. How do I control that?
Greetings,
Jonathan
- You could create a page and name it page-{slug}.php or page-{id}.php – replace {slug} or {id} with what your page you’re trying to edit has.
- After this, add the content as shown below to edit functions on this page:
remove_filter( 'bizznis_post_info', 'do_shortcode', 20 );
//* Run the Bizznis loop
bizznis();
Thanks.
I did it a little bit different. I created a page-nieuws.php and added there the function that will output the meta of the post that I wanted
<?php
add_action( 'bizznis_entry_header', 'bizznis_post_info_new' );
function bizznis_post_info_new() {
global $post;
# Doesn't do post info on pages.
if ( 'page' == get_post_type( $post->ID ) ) {
return;
}
$post_info = apply_filters( 'bizznis_post_info', '[post_date]' );
printf( '
%s
', $post_info );
}
//* Run the Bizznis loop
bizznis();Thanks!
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.