WordPress Navigation

You should hook it like this : function customwidget_init() { $args = array( ‘name’ => __( ‘Main Navigation’, ‘theme_text_domain’ ), ‘id’ => ‘sidebar-navigation’, ‘description’ => ‘Main Navigation Container’, ‘class’ => ”, ‘before_widget’ => ‘<div>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h2 class=”widgettitle”>’, ‘after_title’ => ‘</h2>’ ); register_sidebar( $args ); } add_action( ‘widgets_init’, ‘customwidget_init’); see Codex description

Issue after changing permalink structure [duplicate]

You can use this query to generate the RewriteRules that you will need. Once generated the would go into your .htaccess file and need to be prepended with: RewriteEngine On RewriteBase / The following SQL output should setup rewrite rules for /postname/ to /category/postname/ based on what is in your database now. The trailing forward … Read more

Extending arrays in parent theme without completely overriding the files

I don’t know exactly how your themes– parent and child– are constructed but the child theme’s functions.php loads before the parent’s. So, if this template is included via functions.php changes you attempt to make in the child functions.php to that $Icons array will be overwritten as soon as the parent function.php loads. Since you say … Read more

Shortcodes can only be used in Pages, not Posts

You can do this easily with a custom query. Try something like this (I haven’t tested this code, but it should be fine): (EDIT: Changed below to “get_the_post_thumbnail”, also added $post->ID) <ul> <?php $args = array( ‘cat’ => ’17’, ‘posts_per_page’=>20 ); $sponsors_query = new WP_Query( $args ); while ( $sponsors_query->have_posts() ) : $sponsors_query->the_post(); echo ‘<li>’ … Read more