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>
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>
Please try to remove following line from last line ‘rewrite’ => array(‘slug’ => ‘events’,’with_front’ => false) And Visit the permalinks page at admin side (which will flush it) and save/check again. WordPress probably just needs to be nudged to recognize your addition to the hierarchy.
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
It looks like you’re reusing an id for each image. In that case, Js will only select the first element it runs into with the id
Using AJAX on frontend: Synchronous XMLHttpRequest deprecation except for admin role
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
Single post shows post three times
OK so I’ve spent a couple of more hours working on this and was examining my database through phpmyadmin. In the table wp_terms I noticed that I had terms identical to my page’s slug. Turns out I had a tag named like this. I deleted the tag, and voila – no more 404 error. Hope … Read more
Modify post template on Divi Theme
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