Edit post update button after pressed my admin showing blank white. Please help me an
Hi Iam using child theme this is functions.php code :
<?php
// Unhook default ClassiPress functions
function unhook_classipress_functions() {
remove_action( 'appthemes_before_post_title', 'cp_ad_loop_price' );
}
add_action('init','unhook_classipress_functions');
function cp_remove_loop_price() {
if ( is_page() ) return; // don't do ad-meta on pages
global $post;
if ( $post->post_type == 'page' || $post->post_type == 'post' ) return;
$price = get_post_meta($post->ID, 'cp_price', true);
if (!empty($price) AND ($price>0)){
?>
<div class="price-wrap">
<span class="tag-head"> </span><p class="post-price">
<?php if ( get_post_meta( $post->ID, 'price', true ) ) cp_get_price_legacy( $post->ID );
else cp_get_price( $post->ID, 'cp_price' ); ?></p>
</div>
<?php
} else { ?>
<?php
}
}
add_action( 'appthemes_before_post_title', 'cp_remove_loop_price' );
// @sreenubfa :: registering a new thumbnail size for ads :: START
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 150, 150 ); // default Post Thumbnail dimensions
}
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'rb_adthumb', 130, 100, true ); // Hard Crop Mode
}
// @sreenubfa :: registering a new thumbnail size for ads :: ENDS
// @sreenubfa :: get the image associated to the ad used on the home page :: START
if ( ! function_exists( 'rb_ad_loop_thumbnail' ) ) :
function rb_ad_loop_thumbnail() {
global $post, $cp_options;
// go see if any images are associated with the ad
$image_id = cp_get_featured_image_id( $post->ID );
// set the class based on if the hover preview option is set to "yes"
$prevclass = ( $cp_options->ad_image_preview ) ? 'preview' : 'nopreview';
if ( $image_id > 0 ) {
// get 75x75 v3.0.5+ image size
$adthumbarray = wp_get_attachment_image( $image_id, 'rb_adthumb' );
// grab the large image for onhover preview
$adlargearray = wp_get_attachment_image_src( $image_id, 'large' );
$img_large_url_raw = $adlargearray[0];
// must be a v3.0.5+ created ad
if ( $adthumbarray ) {
echo '<a href="'. get_permalink() .'" title="'. the_title_attribute( 'echo=0' ) .'" class="'. $prevclass .'" data-rel="'. $img_large_url_raw .'">'. $adthumbarray .'</a>';
// maybe a v3.0 legacy ad
} else {
$adthumblegarray = wp_get_attachment_image_src($image_id, 'thumbnail');
$img_thumbleg_url_raw = $adthumblegarray[0];
echo '<a href="'. get_permalink() .'" title="'. the_title_attribute( 'echo=0' ) .'" class="'. $prevclass .'" data-rel="'. $img_large_url_raw .'">'. $adthumblegarray .'</a>';
}
// no image so return the placeholder thumbnail
} else {
echo '<a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '"><img class="attachment-medium" alt="" title="" src="' . appthemes_locate_template_uri( 'images/sreethemes-130-no-pic.png' ) . '" /></a>';
}
}
endif;
// @sreenubfa :: get the image associated to the ad used on the home page :: ENDS
?>