HTML table attributes ignored

Remove the border=”1″ attribute but leave the cellspacing. Then go into styles.css and either add your CSS selectors or modify the existing selectors. If your table is within the id=”content” block, the styling is being affected by the existing selectors. The ones you will want to adjust are: #content table { border: 1px solid #e7e7e7; … Read more

Help with WordPress function inside a shortcode

It looks like you’re using a php tag within a php tag. I’d try something more like this… <?php echo do_shortcode(‘[button type=”square” color=”black” size=”small”] Posted by ‘.get_the_author().’ [/button]’); ?> or something like this… <?php $shortcode=”[button type=”square” color=”black” size=”small”] Posted by “.get_the_author().’ [/button]’; echo “do_shortcode(‘$shortcode’)”; ?>

Get Page ID from Backend

Take a look this page from the codex. When creating a metabox, one of the options is a callback, which when called take a paramater for $post, which is the same as calling global $post ( as a side note, you can still do this in the backend Admin and get all the same variables. … Read more

Add title=”” to A PHP Code

Use the arguments available for the_post_thumbnail() function as written in the codex. Edit: just did a test with this and it worked for me: $post_title = the_title( ”, ”, false);//get the title $attr = array(‘title’ => $post_title);//set the parameter the_post_thumbnail(‘full’, $attr);//call the function