LinkedIn Share Post Button

Use this: <script type=”text/javascript” src=”http://platform.linkedin.com/in.js”></script><script type=”in/share” data-url=”<?php the_permalink(); ?>” data-counter=”right”></script>

Post Template Query with WP_Query?

If you are still stuck, one possible alternative is to get all Post ID’s by the custom post type. You could try something like this: $the_query = new WP_Query( array( ‘post_type’ => ‘my-custom-post’, ‘posts_per_page’ => -1, ) )); while ( $the_query->have_posts() ) : $the_query->the_post(); the_ID(); endwhile; It would require you creating a custom post type, … Read more

How to display different blocks for mobile and desktops

You’re using the right function to detect the current user agent, otherwise there is another php library you can solicit called : Mobile-detect which help to detect the user agent device and the OS as well : https://github.com/serbanghita/Mobile-Detect Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string … Read more

How to center all text body in single.php at once?

There is probably some CSS you can add via Additional CSS (in Theme CUstomization) that you could use. Use the Inspector tool of your browser (F12) to see the CSS ‘class’ element used in the content. If the class is called ‘the_content’, then add this to your Additional CSS: .the_content{text-align:center !important;} You might need this, … Read more

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