Get posts after calculating meta key

Assuming meta_count is another column in your postmeta table below query should get you the posts based on meta_value/meta_count calculation. $postids=$wpdb->get_col( $wpdb->prepare( “SELECT post_id FROM $wpdb->postmeta ORDER BY (meta_value/meta_count) LIMIT 10 ” ) ); The result $postids would be an array. You will have to declare $wpdb as a global variable before you use this … Read more

Help with responsive theme styling issue

Because some of titles are running on to three lines when the screen gets smaller its messing up the flow of the floated elements. What you need to do is clear every fourth element. Also this is a basic css question and is not specific to WordPress at all.

Add Text After Logo in zerif lite theme

using some custom.css create 2 of these class like #main-nav-fb { width: 150px; display: block; padding: 2px 4px; border-radius: 0 0 4px 4px; background: #cc6052; font-size: 14px; text-align: center; color: #fff; position: absolute; top: 0; right: 200px; } in header.php after <div class=”navbar-header responsive-logo”> add something like this: <a id=main-nav-tel href=”https://wordpress.stackexchange.com/questions/193542/tel:+11111111111″>+11111111111</a>

Divi theme including javascript

You might have to use get_stylesheet_directory_uri() instead of get_template_directory_uri() when you’re referencing files in a child theme. On a fresh install, I created and activated a child theme of twentyfifteen called child and run the following codes: echo get_stylesheet_directory_uri(); # Output: http://localhost/test1/wp-content/themes/child echo get_template_directory_uri(); # Output: http://localhost/test1/wp-content/themes/twentyfifteen Also, If you have tested the JS independently … Read more

What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]

You can create Parallax effect for header using pure CSS as well as jQuery. The difference between them is the loading time. CSS will load much faster than jQuery. Implementing a feature will depend on the developer/owner of the theme how they want the feature to be. My preference is that you use pure CSS … Read more

Can’t upload the theme

It seems that you had upload that theme earlier. Go to Media, then find the item which has the same name of the theme you want to upload. Click it, and delete it. After that upload your theme again.