HTML table from shortcode with multiple parameters

I have created an example of how you can achive what you are after: You can use it like this : [itable data=”inv;coin;coinamount;currency#inv;coin;coinamount;currency”] function itable_shortcode( $atts ) { extract( shortcode_atts( array( ‘data’ => ‘none’, ), $atts ) ); $data = explode(‘#’,$data); $output = “”; foreach ($data as $value) { $output .= ‘<tr>’; $in_value = explode(‘;’,$value); … Read more

Suspicious google tag manager

When I disable Content Visibility for Divi Builder then the tag goes away. Seems suspicious… maybe they got hacked or maybe they are bad cookies. Will try to move this to the proper reporting channels. AoD Technologies LLC is the developer. Edit: wanted to temper this with a third possibility of tracking the usage of … Read more

Javascript code inside “” in core WordPress files .php

These are Underscore Templates, handled by the wp.template() JavaScript function (source here) which takes in a template ID corresponding to a <script type=”text/html” id=”tmpl-{template ID}”> element containing such code and compiles it into a function. This function can then be executed with the variables used in the template in order to produce a string of … Read more

Editing page content through FTP?

If the content is dynamically written, you won’t be able to change this through ftp. At the template files the content is called by typing <?php the_content(); ?>(or the_content(); ) if already scripting in php. You need to get his WordPress login information to log in to his website, over there you can see pages, … Read more

How to set dimensions of the post thumbnails (featured images)

Add this code to your theme’s functions.php file. Images are resized by WordPress when they are uploaded. A plugin such as Regenerate Thumbnails can be used to ensure that source images have been properly generated if image sizes are changed after the initial upload. // Sets the parameters for the post-thumbnail image size // https://codex.wordpress.org/Function_Reference/set_post_thumbnail_size … Read more

Beautify WordPress HTML output without any plugins

Great question, I asked it myself and here’s what I came up with. You can just use this in a custom plugin or in functions.php. // turn on Output Buffering (hence *ob*) ob_start(); // register a callback to run after WordPress has outputed everything add_action(‘shutdown’, function () { // get the output buffer and store … Read more

The value of attribute [ data-type ] must be in double quotes – custom html widget error

change it to CSV data-type=”Information Gathering, Farming & Husbandry, Delivery Service, Emergency Response, Remote Inspections, Mapping & Surveying, Maritime Success, Military & Defense Support, Scientific Research, Real Time Surveillance ” then do var toRotate = elements[i].getAttribute(‘data-type’).split(“, “); the .split(“, “) turns the CSV string into an array. then do new TxtType(elements[i], toRotate, period); the toRotate … Read more