get the count of table rows

I think that’s you must using : $wpdb->get_results( “SELECT * FROM {$wpdb->prefix}options WHERE option_id = 1”, OBJECT ); And if you give us the message of error ?

wp_query posts sorting doesn’t work

Thank you, Jacob your suggestion put me into the right direction. This resolved the issue: <a href=”https://wordpress.stackexchange.com/questions/292724/?orderby=title&order=ASC”>Sort By Title</a> <a href=”?orderby=date&order=DESC”>Sort By Date</a> How can I upvote or add +rep you on here? thanks again bro 🙂

Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?

WordPress recommends the proper way to enqueue the main style is the method-A. Please see the WordPress theme development handbook here (though both methods will work). https://developer.wordpress.org/themes/basics/including-css-javascript/ It’s not clear to me why you want to link the two .css file? You can create custom .css file and enqueue it using method-B. However, if you … Read more

Get Video Attachment to post

Video from video clud, like youtube.com, vimeo? If true – use text field or textarea field. User fill youtube share code in this field and you will add this to post_content. Or create custom iframe and tell users insert video link.