Emusan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show limited Categories wp backendI need someone to help me out on this please!!!
I want to chain the select LOCATION to that of COUNTRY
I mean if someone chose under country i.e Nigeria then under location ALL Nigeria states will be available to select.
These are the codes:
<label for=”country”>Country</label>
<select id=”country” class=”show-menu-arrow selectpicker” name=”coun”>
<option value=””>-</option>
<option value=”nigeria”>Nigeria</otpion>
<option value=”germany”>Germany</option>
<?php$args=array(
‘post_type’ => ‘Property’,
‘posts_per_page’ => -1,
);
$i = 0;
$locations = array();
$wp_query=new WP_Query($args);
while($wp_query->have_posts()):$wp_query->the_post();
?>
<?php
$value = get_post_meta(get_the_ID(),’_cmb_pro_country’, true);
if (!in_array($value, $locations) && $value != ”) {
$locations[$i] = $value;
?>
<option value=”<?php echo get_post_meta(get_the_ID(),’_cmb_pro_country’, true);?>”><?php echo get_post_meta(get_the_ID(),’_cmb_pro_country’, true);?></option>
<?php } ?>
<?php $i++; ?>
<?php endwhile;?>
</select>
<label for=”location”>Location</label>
<select id=”location” class=”show-menu-arrow selectpicker” name=”location”>
<option value=””>-</option>
<option value=”lagos”>Lagos</option>
<option value=”abuja”>Abuja</option>
<?php$args=array(
‘post_type’ => ‘Property’,
‘posts_per_page’ => -1,
);
$i = 0;
$locations = array();
$wp_query=new WP_Query($args);
while($wp_query->have_posts()):$wp_query->the_post();
$value = get_post_meta(get_the_ID(),’_cmb_pro_location’, true);
if (!in_array($value, $locations) && $value != ”) {
$locations[$i] = $value;
?>
<option value=”<?php echo get_post_meta(get_the_ID(),’_cmb_pro_location’, true);?>”><?php echo get_post_meta(get_the_ID(),’_cmb_pro_location’, true);?></option>
<?php }
$i++;
endwhile;?>
</select>
I need help seriously.
Forum: Fixing WordPress
In reply to: Updating ErrorPlease can someone help me out also?
After I attempt to upgrade I received this error:
Fatal error: Cannot redeclare get_avatar_url() (previously declared in /home/propert7/public_html/wp-includes/link-template.php:3414) in /home/propert7/public_html/wp-content/themes/wpestate/libs/shortcodes.php on line 741Since then, I was unable to log-in with /wp-login again even my website doesn’t display any information apart from the above error message.
I need help urgently!