sidebar isn’t showing, what’s wrong w/ this code?

Here’s what I have in my sidebar.php: <aside id=”sidebar”> <?php if ( is_user_logged_in() ) { echo ‘<a href=”https://wordpress.stackexchange.com/community”><img id=”visit-the-forums” src=”‘. bloginfo(‘template_url’) . ‘/images/visit-the-forums.png” alt=”Check out the Forums!” /></a>’ } else { echo ‘<a href=”https://wordpress.stackexchange.com/community”><img id=”join-the-forums” src=”‘. bloginfo(‘template_url’) . ‘/images/join-the-forums.png” alt=”Join the Forums!” /></a>’ } ?> <a id=”side-ad”> <img src=”<?php bloginfo(‘template_url’) ?>/images/ipad-ad.png” alt=”iPad 2 Giveaway!” /> … Read more

Styling images coming from another blog

I had asked a question earlier, on getting post-thumbnails from another WP-site. There, the awesome Mike coded a SQL query whose results are then passes on to a PHP array. The piece of code from that answer that I want to modify is this. $post_urls = $wpdb->get_col($sql); if (is_array($post_urls)) echo implode(“\n”,$post_urls); Now the array holds … Read more

how can I remove the sidebar from my wp homepage [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago. What’s the best practice when it comes to … Read more

Get sidebars depending on page

Is there a way to get only the sidebars used on a particular page? Using: global $wp_registered_sidebars; $widget_map = wp_get_sidebars_widgets(); Can get me all of the sidebars, but I’m interested in getting the sidebars only for a particular page. Something sounding like get_sidebars_by_page_id() 0

Vertical Sidebar Menu Parent and Child not displaying correctly [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic. Closed 8 years ago. Improve this question I am developing … Read more

Full width layout for custom post type pages

I’m trying to remove a widget area called ‘Primary’ from a certain page on a site. This is the function where I manage the sidebars: //ADD CATEGORIES IN SIDEBAR OF SINGLE POST TYPE add_action( ‘genesis_sidebar’, ‘add_mysite_sidebar’ ); function add_mysite_sidebar() { if( get_post_type() == ‘post’ ){ dynamic_sidebar( ‘News Categories’ ); } else if( get_post_type() == ‘events’ … Read more