Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Forum: Hacks
    In reply to: allow html in plugin input
    Thread Starter mavisdouglass

    (@mavisdouglass)

    Thanks for the reply, Bob. I really appreciate that you took the time to post that.

    However, I hate to say, I have no idea how to relate that post on stack exchange with my own code.

    Honestly, I know quite a bit about WP. But still half of the time I can’t make heads or tails of the code.

    In an effort to avoid troubling you, I tried a (yet another) plugin that is supposed to allow html into posts via shortcode. That didn’t work either. All I need to do is insert some line breaks in the relevant text area (of the plugin). It does not offer the option to input as text/code mode.

    Could you please be so kind as to offer a clue (feel so dumb for asking) how to relate that stack exchange post to the code I’m using?

    Eternal thanks,
    Mavis

    Thread Starter mavisdouglass

    (@mavisdouglass)

    Thanks a lot for the quick reply! I did submit the support ticket just now. Thanks again.

    Thread Starter mavisdouglass

    (@mavisdouglass)

    Thanks to Firebug I have an idea where the problem is, but not why.

    The code below is (Firebug) from the top of the homepage, through where the “no access” message is actually seen in the code, and on through to the start of the :og metadata tags.

    <html class="js" lang="en-US" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/">
    <head>
    <script src="http://www.diditellyou.net/wp-includes/js/wp-emoji-release.min.js?ver=4.5.1" type="text/javascript">
    Reload the page to get source for: http://www.diditellyou.net/wp-includes/js/wp-emoji-release.min.js?ver=4.5.1
    </script>
    <script class="lazyload" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" charset="utf-8">
    <style class="lazyload" charset="utf-8">
    <style class="lazyload" charset="utf-8">
    <script class="lazyload" src="http://api.iflychat.com:80/h/toMW3vzq2gNrFj84OxvnxLNBziimuYASzSTK9O2FM6jiRkgADPXlzNVeLh1462204184279FCI5NsHYu4HPsCcFOwxTgA7Q7bvEy6GyAbgVroUeKKOHeumWAyk7TOlUP/settings/no.cache.js" charset="utf-8">
    <script class="lazyload" src="//cdn.iflychat.com/js/iflychat.min.js" charset="utf-8">
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
    </head>
    <body class="home-page home page page-id-5 page-template-default group-blog js">
    <p>You do not have permission to view this content</p>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <link href="http://gmpg.org/xfn/11" rel="profile">
    <script>
    (function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);
    </script>
    <title>diditellyou.net – User-Submitted Best Adventure Stories</title>
    <link href="http://www.diditellyou.net/feed/" title="diditellyou.net » Feed" type="application/rss+xml" rel="alternate">
    <link href="http://www.diditellyou.net/comments/feed/" title="diditellyou.net » Comments Feed" type="application/rss+xml" rel="alternate">
    <meta content="YOUR USER ID" property="fb:admins">
    <meta content="Did I Tell You…..  about the time…………..?" property="og:title">
    <meta content="article" property="og:type">
    <meta content="http://www.diditellyou.net/" property="og:url">
    <meta content="Did_I_Tell_You_dot_net" property="og:site_name">
    Thread Starter mavisdouglass

    (@mavisdouglass)

    Apologies, here is a link to my site:
    http://www.diditellyou.net/

    mavisdouglass

    (@mavisdouglass)

    Sweets6, Since no one else has answered you I will guess that no matter where you want to display the list, you must add that code as directed above. Did you try it to see? (It works for me in both sidebar and regular list on a content page because of doing the fix above.)

    Thank you MagicB85!

    I’ve been working on this for weeks. You are the only one to provide a solution that works! TYTYTYTYTY!!!!

    To sweets6 or anyone having problems finding where to put the code:

    After searching ad nauseum this evening, I finally found where that code goes. It goes in the *WIDGET’s* functions.php file.

    In retrospect it seems obvious that a widget would have its own functions.php. That little tidbit of info is going to help me tremendously in customizing a few other widgets that have been driving me crazy. <JOY>

    Apparently, WP-Dashboard/Appearance/Editor does not show widget files. Well out of equal parts desperation and curiosity, I checked out yesterday’s site-backup (complete ftp copy of entire wp folder) and tracked it down (functions.php) that way.

    Find the widget’s functions.php file like this:
    /yourroot/wp-content/plugins/recent-posts-widget-extended/includes/functions.php

    You have to open each of those folders one by one til you get to the widget’s functions.php, then edit it in notepad/dreamweaver then upload.

    DISCLAIMER: ALWAYS MAKE A BACKUP (ie create functions_bak.php) before you change code.

    FYI, At first it didn’t work, just adding the few lines of code. Got the dreaded “internal server error.” So I copied the entire codeblock from the answer above. WORKED LIKE A CHARM!!!

    Thanks again, MagicB85!

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