missing “else” in the 3rd elseif.
<?php
/*
Which logo do we use?
*/
if (is_tree('33') ) { // if is conway
$logoClass="logo-conway ";
$link = get_bloginfo('url') . '/conway';
} elseif (is_tree(35) ) { // if is cullowhee
$logoClass="logo-cullowhee ";
$link = get_bloginfo('url') . '/cullowhee';
} elseif (is_tree(31) ) { // if is Johnson City
$logoClass="logo-johnson-city ";
$link = get_bloginfo('url') . '/johnson-city';
} else { // if is something else
$logoClass="logo-home";
$link = get_bloginfo('url') . '/home';
}
?>
Related Posts:
- plugins_url vs plugin_dir_url
- Get list of years when posts have been published
- Redeclare a function in a child theme
- Is it possible to remove the “standard” post format?
- Do WordPress’ cron’s clean up expired transients?
- How to add first name & last name to default registration form?
- Masking logout URL
- How can I programmatically create “child” pages on theme activation?
- Add admin bar link to edit author
- Warning/Notice about functions.php
- How to include one class/instance without using global variables
- Modify search function in WordPress (TwentyTwelve)
- Is checking whether the blog is installed necessary?
- How to add CSS style sheet dynamically in wordpress
- How to update BuddyPress xprofile fields programmatically? [closed]
- Replace Archive Widget Link Text
- A snippet after every image
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- wp_remote_post with ssl:// protocol
- How do I deactivate a plugin for some roles
- How to display more audio file ID3 tags in WordPress
- Searching for content post
- Running CRON on Server with WP Function
- Using separate .php file for functions – how to run on site?
- How to include local menu based on page id?
- How to add custom fields to my custom registration form
- Add Featured image column into wordpress admin on pages AND posts
- How can I change the do_action function in footer (copyright area)
- How to display post content instead of excerpt
- Access Plugin data from Functions.php
- Override a theme function in a child theme?
- changing behaviour of get_search_form
- Having a Function Inside of the Loop
- how to call a function only in specific pages and exclude it from other pages
- Which action does wp_update_user triggers?
- Include default functions and methods
- Use register_setting() in a loop
- Dynamic dropdown from database table
- Add dynamic links in WordPress custom theme
- WordPress website Rs changed to currency symbol
- Functions in custom theme
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- Attempt to change jQuery version caused White Screen of Death
- check if author has published posts in custom post type, then send mail
- paginate_links() don’t properly work in search.php?
- Difference b/w Simple function call & do_action call
- What’s wrong with my use of plugin_url()?
- Hook into a function without a hook?
- Filter yoast canonical add_action priority [closed]
- Should I store functions in separate folder?
- How can I modify the element on all pages?
- AMP – Change rel=”canonical” from functions.php [closed]
- the_password_form functions not working together
- Function filter breaking tag archive menus
- How to echo the value of an array element using a function via a shortcode
- PHP 7.1 | Warning: A non-numeric value encountered in
- Way to redirect all Product Sub Category to its Main category Page?
- Convert multiple logos into the_custom_logo
- I can’t add CSS with functions.php
- Fatal error: Call to undefined function is_even()
- Register_Sidebar overwriting itself and doesn’t exist in global $wp_registered_sidebars;
- widgets not working
- search form leads to 404
- wp_get_archives() output
- hook for dashboard show_user_profile
- How to hide WooCommerce product title and short description to non logged in users?
- How to loop while adding data to database?
- Prevent wp_signon redirect on failed login for ajax login
- Bulk updating a group of WordPress Pages every 10 minutes
- localize_script but data changes dependent on product ID
- Can we have conditional CSS styling?
- Change function without filter hook
- is_email gives me error
- only update titles of single posts
- Post content overflows on my mobile phone
- OOP Switch statement with array as parameter
- How to add javascript code into Divi child theme?
- Using AJAX on frontend: Synchronous XMLHttpRequest deprecation except for admin role
- how can I change the read more link destinations and direct all to the same page?
- Woocommerce custom calculation function
- button to toggle css styling / div visibility?
- How to build two WordPress site using two different themes with same database (No ! I am not taking about multisite network)?
- How can I stop the hook from breaking the login/logout function?
- Does WordPress function replace_hello() exists?
- Using wp_localize_script in template file – is it secure?
- us states dropdown function and echo in theme template files
- Nothing happends on post_update
- Expanding a function to call a plugin or show a link
- Getting error while trying to use custom comment function
- Load WP Admin scripts in a child theme functions file
- Can’t change excerpt length and more tag
- Remove theme, change theme button and WP version on “Right Now” admin dashboard?
- Making an under maintenance page (without using plugins)
- Image width issue in IE [closed]
- Changed functions.php file and now site is blank [closed]
- How to resize image from import image url?
- Vimeo video play button color function
- How to overwrite image if it already exists – WordPress, Gravity form
- Change TinyMCE undeline outpout
- Loading newest dependency javascript module file in functions.php