WordPress Footer Widget Processing

In your sidebar array as an example: register_sidebar(array( ‘id’ => ‘footer’, ‘name’ => ‘Footer’, ‘before_widget’ => ‘<div id=”%1$s” class=”widget col-sm-4 %2$s”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h4 class=”widgettitle”>’, ‘after_title’ => ‘</h4>’, )); Don’t worry about wrapping the sidebar in a row. Let this do it for you. See, the col-sm-4 (or whatever size, with 4) … Read more

Elegant way to signify inheritance and relationship between posts

Using the Posts 2 Posts Module which is still being developed just no support is being offered except through the git fork. How to use it. function my_connection_types() { p2p_register_connection_type( array( ‘name’ => ‘posts_to_pages’, ‘from’ => ‘post_type_1’, ‘to’ => ‘post_type_2’, ‘cardinality’ => ‘one-to-many’ ) ); } add_action( ‘p2p_init’, ‘my_connection_types’ ); The above example will create … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)