Detecting IP Address of someone using ‘copy’ function [closed]

Here is a road map to do this. You should adjust this code to your exact requirements: You can detect copy event in JavaScript using this code in your page <script> jQuery(document).ready( function($) { function myFunction() { // here make an ajax call to send data to server $.ajax({ url: “http://yourwebsite.com”, type: ‘POST’, data: {‘copied’: … Read more

Pagination not working properly

Don’t use query_posts in the template. If you delete that line, your template will paginate correctly. If you want to alter the main query, use the pre_get_posts action. Currently, your query overwrites the default main query, and you don’t set any pagination parameters within the query, so you’re always going to get the first 10 … Read more

How do I remove spammy links in WP theme footer?

Replace: $l=” | Theme Designed by: <?php echo wp_theme_credits(0); ?> | Thanks to <?php echo wp_theme_credits(1); ?>, <?php echo wp_theme_credits(2); ?> and <?php echo wp_theme_credits(3); ?>”; With: $l=” | Theme Designed by: <?php echo wp_theme_credits(0); ?>”;

Undefined variable notice [closed]

You are getting that because the $post variable isn’t set. You’ll need to call global $post at the beginning of your function. function custom_content_filter_the_content( $content ) { global $post; …

Show post like this image in my newssite [closed]

I’m not sure what you’re asking for. If you need a simple query for a category. try generatewp.com for the fastest solution. Here’s how to code it yourself. https://codex.wordpress.org/Class_Reference/WP_Query you’ll want to use the Category_Parameters

Blog listing not showing dates for every post and arrow missing off image

If I understand the question correctly, I actually had issues with this fairly recently. Ultimately, I learned that by default, the_date() will only display the date for the first post on a given day. If you are using the_date you need to replace it with something else. I usually just use echo get_the_date().

Javascript code not working – $ is not a function error

I actually just wanted to make a comment but..(reputation is too low) so doing it this way. If for some reason two versions of jQuery are loaded (which is not recommended), calling $.noConflict( true ) from the second version will return the globally scoped jQuery variables to those of the first version. So to solve … Read more

Submit cf7 form to cfdb as pdf/BLOB [closed]

What I have learned is that the screen shot method is not really possible. So what I have done is used a method prescribed here using FPDF: https://wordpress.org/support/topic/convert-pdf-file The last post is most instructive. The problem with this method is that it is not conditional regarding the form and so some if statements needed to … Read more