Display inner pages like posts.[Like how post excerpt works]

By default, the page post type does not show the excerpt box like posts, but you can enable it like this(code goes into your theme’s functions.php file): add_action(‘init’, ‘excerpt_for_pages’); function excerpt_for_pages() { add_post_type_support( ‘page’, ‘excerpt’ ); } Then you can see the excerpt field when you edit your page. If not, make sure it is … Read more

Display custom_post_type with current taxonmy of a page

use some thing like this $queried_object = get_queried_object(); $term_id = $queried_object->term_id; Most probably $term_id should give the id of the taxonomy term of the current page, try echo $term_id; If it doesn’t then try using var_dump() like echo “<pre>”;var_dump( $queried_object )echo “</pre>”; Analyse the output , and use it according to your need

Search Page: activate html code if the tag is on the page

This is completely untested but I believe you would want something along these lines: <?php if( $loop->have_posts() ): while ( $loop->have_posts() ): $loop->the_post(); // Do stuff for results echo ‘<h2>’ . the_title() . ‘</h2>’; // Check for tag if(has_tag($tag) { output HTML if true } endwhile; else: echo “No Results!”; endif; ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)