coded properly the custom post type slug
This commit is contained in:
parent
e61ae7787a
commit
510a92d4dd
|
@ -57,12 +57,17 @@ function xarxaprod_plugin_active() {
|
||||||
/**
|
/**
|
||||||
* Echo the post type slug
|
* Echo the post type slug
|
||||||
*/
|
*/
|
||||||
function xarxaprod_class_posttype (){
|
if ( ! function_exists( 'xarxaprod_class_posttype' ) ):
|
||||||
if( is_post_type_archive( array('xarxaprod-ajut') )) {
|
function xarxaprod_class_posttype (){
|
||||||
echo 'archive-custom-post-type-';
|
if( is_post_type_archive( array('xarxaprod-ajut') ) || is_post_type_archive( array('xarxaprod-convo') ) || is_post_type_archive( array( 'xarxaprod-associat') )) {
|
||||||
printf(get_post_type_object( get_post_type() )->rewrite['slug'] );
|
//if( get_post_type() == 'xarxaprod-ajut' || get_post_type() == 'xarxaprod-convo' || get_post_type() == 'xarxaprod-associat' ){
|
||||||
}
|
echo 'archive-custom-post-type-';
|
||||||
}
|
printf (get_post_type_object( get_post_type() )->rewrite['slug']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
endif; //end xarxaprod_calss_posttype
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays the FAQS subcategories from category id=1
|
* Displays the FAQS subcategories from category id=1
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue