Having Trouble Styling a Table in a WordPress Post

Your understanding is partly right. Later styles override earlier ones IF they have the same or less specificity of the selectors. Specificity can be a tricky/counter-intuitive thing, but the basics are: selectors that specify an element in a more narrow (specific) way override those that define them in a broader way. It all depends on … Read more

making urls clickable for wordpress custom post type field?

put this in your functions.php: function my_format_artist_links($urls) { $urls = explode(‘,’, $urls); $links = array(); foreach ($urls as $url) { if (empty($url)) continue; $links[] = ‘<a href=”http://’.$url.'”>’.$url.'</a>’; } return implode(‘,’, $links); } and then replace <p><span>Link(s):</span> <?=$artist_links?></p> with <p><span>Link(s):</span> <?php echo my_format_artists_links($artist_links); ?></p>’

Notify Author of the post if admin deletes his post and perform some function

Firstly, it’s better to user WP functions than write your own SQL. Even though it might be a bit more expensive: $post = get_post($post_ID); $authorid = $post->post_author; Secondly, it’s not get_usermeta(), but get_user_meta() and the complete call should include true as the third parameter: $currentPointNumber = get_user_meta($authorid, ‘points’, true); And then it’s update_user_meta(), again, and … Read more

How to view plugin ratings?

There’s no way to see the individual ratings, but you can see the total number of ratings and what they average out to. In the bottom left of your plugin page (in the repository) there is a section for “What others are saying”, and it will display any posts from the WordPress forum talking about … Read more

How to display a page?

Actually, pages also use the loop to display contents, but there will only be one “post” to loop through. Pages are treated almost exactly the same way as single posts as far as reading and rendering content goes. If you’re creating your own page.php file for a theme, take a look first at how Twenty … Read more