Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Fixing WordPress
    In reply to: Image Map in Page
    derekbanas

    (@derekbanas)

    Here is code that works in a WordPress post. No need for plugins, or anything else. Just copy and paste it in the post. Make sure you have the html tab clicked

    <div>
    <img class="alignnone" id="imageMaps" src="https://businessplumbing.com/wp-content/uploads/2011/11/Sloan-Royal-Flushometer.png" alt="" width="298" height="595" usemap="#flushometer" border="0" />
    
    <map name="flushometer" id="flushometer"> 
    
    <area shape="rect" coords="219,6,277,41" href="https://businessplumbing.com/products-page/lavatory-sink/sloan-royal-flushometer-a-72-cp-cover/" alt="A-72 CP Cover" />
    
    <area shape="rect" coords="218,42,278,70" href="https://businessplumbing.com/products-page/lavatory-sink/sloan-royal-flushometer-a-71-inside-cover/" alt="A-71 Inside Cover" />
    
    </map>
    </div>

    WordPress seems to get irritated if you create multiple maps around every area. Dreamweaver does that, so that may be the reason so many people are having trouble? I have more example code here if you need further help. newthinktank.com/2011/12/image-maps-in-wordpress-posts/

    Thread Starter derekbanas

    (@derekbanas)

    For anyone that has this problem in the future here is the way to fix this problem. Now you’ll be able to use your short code output any where.

    An example can be found here https://www.newthinktank.com/2010/08/post-rss-feeds-in-wordpress/

    //This code is needed to use the wp_rss() function.
    include_once(ABSPATH.WPINC.’/rss.php’);
    function readRss($atts) {
    ob_start();
    extract(shortcode_atts(array(
    “feed” => ‘https://&#8217;,
    “num” => ‘1’,
    ), $atts));
    wp_rss($feed, $num);
    $output_string=ob_get_contents();
    ob_end_clean();
    return $output_string;
    }
    add_shortcode(‘rss’, ‘readRss’);

    I posted a ton of solutions specific to a hacked WordPress account on Go Daddy. Don’t pay the $150. All they do is go into your File Manager, click on History and then the restore button. This will not work. You have to reinstall themes, sometimes plugins. It’s all in the article. Hope that helps if not just ask. Fix WordPress after Hack

Viewing 3 replies - 1 through 3 (of 3 total)