Can’t activate plugin [closed]

Open this file C:\xampp\htdocs\web\wp-content\themes\Total\functions.php go to on line 283 and check how you have added add_action function. It must be like this. add_action(‘tag’,’function_callback’ ); add_action is a function which allows you to attach a function to an action hook and it must not be string eg. ‘add_action’ Please read document about add_action http://codex.wordpress.org/Function_Reference/add_action

How can i include a plugin in my theme folder?

It isn’t good idea to include some plugins directly in your theme, because you loose oportunity to update plugin etc. If you do so manually and update whole theme you can try to put folder with plugin eg. my-plugin in your themes root directory and in functions.php just include main my-plugin.php (folder name and main … Read more

Get URL for featured image for posts? [closed]

The function to use would be: $url = get_the_post_thumbnail_url(); However, that’s not the most helpful for you right now, so we have a meta field with placeholders that you need to swap out for URLs before outputting. breaking that down we get these smaller steps: // grab the field // grab the URL // swap … Read more

BuddyPress group filter

BuddyPress allows you to add custom filters for members, groups, blogs, and activities. There’s a thorough documentation on how to add custom filters to loops and I’d recommend you to check it out. There’s a lot of example code that should help you get started.

Defer parsing of JavaScript [duplicate]

You have to be careful with PageSpeed and GTMetrix and other such tools because the provide results without context. They have pre-set rules like ‘scripts should be deferred and/or loaded at the end of the page above the closing </body> tag. But some scripts can’t be deferred if you want them to provide the functionality … Read more