Title: sdoss's Replies | WordPress.org

---

# sdoss

  [  ](https://wordpress.org/support/users/sdoss/)

 *   [Profile](https://wordpress.org/support/users/sdoss/)
 *   [Topics Started](https://wordpress.org/support/users/sdoss/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sdoss/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sdoss/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sdoss/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sdoss/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sdoss/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 60 total)

1 [2](https://wordpress.org/support/users/sdoss/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/sdoss/replies/page/3/?output_format=md) 
[4](https://wordpress.org/support/users/sdoss/replies/page/4/?output_format=md) 
[→](https://wordpress.org/support/users/sdoss/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Blog mainpage odd behavior](https://wordpress.org/support/topic/blog-mainpage-odd-behavior/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/blog-mainpage-odd-behavior/#post-11232647)
 * Unfortunately, we can’t. The site wasn’t originally developed in a way to encourage
   updating. And it’s extensive enough that it needs a complete rewrite.
 * We’ll debug and test using the code displaying the excerpts. If/when we figure
   out what’s doing it, I’ll post here.
 * Thanks for your time.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Blog mainpage odd behavior](https://wordpress.org/support/topic/blog-mainpage-odd-behavior/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/blog-mainpage-odd-behavior/#post-11232607)
 * Um, ok, a miscommunication. This is not a user. This is text from the first paragraph
   in the blog post.
 * The user that is posting is called ‘CURREY ADKINS’ so that shows under the blog
   title.
 * The first line in the post is actually an image, and the words ‘By Henry J. Paoli’.
 * So it’s text in the blog.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Blog mainpage odd behavior](https://wordpress.org/support/topic/blog-mainpage-odd-behavior/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/blog-mainpage-odd-behavior/#post-11232534)
 * Thanks. Except for the fact that this particular name is the only one that gets‘
   massaged’, I’d say it’s not a length issue. It’s not even truncating, just targeting
   those 3 letters.
 * We’ve even created a test blog post. In the title we put ‘aol test’, and the 
   title shows correctly on the main page. In the body of the post, we put ‘This
   is a test, to see if aol is removed in excerpts. How about Paoli? Remove aol 
   test. aol Removed altogether’.
 * The main blog page shows:
    aol test BY CURREY ADKINS SUPPORT IN UNCATEGORIZED
   This is a test to see if is removed in excerpt. How about Pi? Remove test. Removed
 * We’re also using Wordfence on the site, v 6.3
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Restore multisite from tar.gz](https://wordpress.org/support/topic/restore-multisite-from-tar-gz/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/restore-multisite-from-tar-gz/#post-9537272)
 * So, found it. Restoring the files/directory structures/databases was all fine.
   My issue was that apache did not have mod-rewrite turned on :/
 * Live and learn. Closing this; thanks.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Restore multisite from tar.gz](https://wordpress.org/support/topic/restore-multisite-from-tar-gz/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/restore-multisite-from-tar-gz/#post-9536413)
 * Thanks, John. I’ve got that.
 * My problem is that when I click to go to the dashboard on the subsite, I get 
   a login screen, that won’t let me log in. So something has happened in the restore.
 * My question is: I need to bring a multisite up from a tar.gz file. What steps
   need to be taken to do so?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More] Slider Revolution background images not updated](https://wordpress.org/support/topic/slider-revolution-background-images-not-updated/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/slider-revolution-background-images-not-updated/#post-6861353)
 * Cory,
 * Thanks for the response. And the links. And yes, they want you to use their internal
   mechanism to update the links for the images.
 * Appreciate your attention to the forums 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Authorizenet.CIM not displaying on checkout page](https://wordpress.org/support/topic/authorizenetcim-not-displaying-on-checkout-page/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/authorizenetcim-not-displaying-on-checkout-page/#post-6582968)
 * So. Perhaps not so simple.
 * You apparently MUST have a key and login to authorize.net before ANYTHING will
   happen in the plugin.
 * According to the CODE (and not the documentation, where you would assume it to
   be) if there is no key, or no login, or the authorize.net account does not allow
   CIM, then the plugin code simply exits, returning a false value to the gateway
   portion of the WooCommerce code that displays the payment options.
 * So you can’t even see what it looks like on the front-end unless you have it 
   all set up.
 * Closing this post.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Failed auto update on WordPress core and now WooCommerce is broken](https://wordpress.org/support/topic/failed-auto-update-on-wordpress-core-and-now-woocommerce-is-broken/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/failed-auto-update-on-wordpress-core-and-now-woocommerce-is-broken/#post-6383520)
 * Good Lord.
 * Cancel the above comment about WooCommerce :/
 * The true issue was with conflicting jquery files :/
 * I would still like to have an answer re the failed update message, if anyone 
   can see their way clear to help out.
 * Thanks in advance.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Fast Secure Contact Form] Is there a limit to the number of fields you define?](https://wordpress.org/support/topic/is-there-a-limit-to-the-number-of-fields-you-define/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/is-there-a-limit-to-the-number-of-fields-you-define/#post-6280785)
 * Super, thanks so much for the quick response!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Passing a variable value from WordPress pages to an external cgi application](https://wordpress.org/support/topic/passing-a-variable-value-from-wordpress-pages-to-an-external-cgi-application/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/passing-a-variable-value-from-wordpress-pages-to-an-external-cgi-application/#post-3059010)
 * So, this morning, life is simply grand. And, as an html half-wit, I’ve learned
   the value of paying attention to closing tags (or lack thereof).
 * Following is (if anyone wants to know) my solution to building a link on a page
   on the fly:
 * 1) Install a plug-in that allows the use of php code in pages/posts. I used this
   one:
    [Allow PHP in Posts and Pages](http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/)
   2) Add a function to your functions.php file that will register any url query
   variables you may need:
 *     ```
       add_filter('query_vars', 'function_name' );
       function function_name( $array_name ) {
         $array_name[] = 'query_var_1';
         return $array_name;
         }
       ```
   
 * Here is a link to documentation for this function: [add_filter](http://codex.wordpress.org/Function_Reference/add_filter)
   
   3)On your page, under the html tab of the wysiwyg editor, using the plug-in syntax,
   and before your html code, put:
 *     ```
       [php]
       global $temp_var;
       global $href_1;
       global $href_2;
       $href_1='"http://yourdomain.com/linktopage1';
       $href_2='"http://yourdomain.com/linktopage2';
       $temp_var=get_query_var('query_var_1');
       if ($temp_var == "") {
         $href_1 = $href_1 . '">';
         $href_2 = $href_2 . '">';
         } else
           {
             $href_1 = $href_1 . '?query_var_1=' . $temp_var . '">';
             $href_2 = $href_2 . '?query_var_1=' . $temp_var . '">';
           }
       [/php]
       ```
   
 * This defines the variables you will be using, sets your ‘on-the-fly’ links to
   a beginning value, pulls in the value of ‘query_var_1’ from the url (if present)
   and places it in $temp_var, then, if $temp_var is empty, closes the a href portion
   of the link. If $temp_var is not empty, it concatenates the query_var_1 name,
   =, and the value it pulled from the url, and closes the a href portion of the
   link. Here’s the [get_query_var](http://codex.wordpress.org/Function_Reference/get_query_var)
   function.
 * Then, in your html, where you open your href tag:
 *     ```
       <a href=[php]global $order; global $href_1; echo $href_1;[/php]
       <plus other stuff like src, etc </a>
       ```
   
 * This code simply echoes what you formatted up above.
 * I am very sure that there is an easier way to do this. I just couldn’t find a
   post anywhere that said, “do it like this!”.
 * Maybe it will help someone else. It’s amazing what a good night’s sleep and a
   strong cup of coffee will do for you. 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Passing a variable value from WordPress pages to an external cgi application](https://wordpress.org/support/topic/passing-a-variable-value-from-wordpress-pages-to-an-external-cgi-application/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/passing-a-variable-value-from-wordpress-pages-to-an-external-cgi-application/#post-3059009)
 * Next update: after trying many, many, many different things, I’ve been able to
   retrieve the query parameter, and on each page, build the link to go to the next
   page and tack the query parameter on the end. Works ok (for a noob), and I’m 
   sure there’s a much, much easier way to do this, but here’s what I did:
 * On each page, (again, using the Allow PHP in Posts and Pages plugin) I inserted
   the following code:
 *     ```
       [php]global $order;
             global $href_1;
             $order=get_query_var(ORDERNUMBER);
             $href_1='"wood-mulch?ORDERNUMBER='.$order.'">';
        [/php]
       ```
   
 * which sets up the variables I need and pulls the value of the order in from the
   url. Then, in the html portion of the page, I changed the hardcoded url to:
 *     ```
       <a href=[php]global $href_1;global $order;echo $href_1;[/php]</a>
       ```
   
 * (with all the other stuff that goes with the href tag). This worked great, and
   we were all doing the happy dance in our chairs.
 * Then, we decided that gosh! The first time into the site, the user won’t HAVE
   an order number, so the links really shouldn’t include the **?ORDERNUMBER=** 
   language. So, back to the editor, and we changed the code to this:
 *     ```
       [php]global $order;
             global $href_1;
             $order=get_query_var(ORDERNUMBER);
             if ($order=="") {
               $href_1='"wood-mulch"';
             } else {
               $href_1='"wood-mulch?ORDERNUMBER='.$order.'">';
             }
        [/php]
       ```
   
 * and, immediately, everything is broken. We decided that the php code, as php 
   code, is correct (and Please! tell me if I’m wrong), so, thought maybe the ‘}’
   was botching things, and changed to escape it using the ‘\’ backslash. No luck.
 * So, removed the if statement, and placed it into a ‘snippet’, along with the 
   global variable definition. Still no luck.
 * (sigh)….so, so close….
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Passing a variable value from WordPress pages to an external cgi application](https://wordpress.org/support/topic/passing-a-variable-value-from-wordpress-pages-to-an-external-cgi-application/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/passing-a-variable-value-from-wordpress-pages-to-an-external-cgi-application/#post-3059008)
 * Ok, so progress report…
    a) The add_query_arg function works just fine. If all
   three parameters are literal, and not variable, the function will append what
   you tell it to appropriately. b) No, you cannot embed your own php UNLESS you
   are using a plug-in that allows you to do so. To that end, I’ve applied the following
   plugin:
 * [Allow PHP in Posts and Pages](http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/)
 * and, indeed, it allows you to very easily put php code on your page.
    c) No, 
   I’m not out of my mind…I’m just ignorant. So, here is where I now am:
 * I’m trying to append a variable order number to a link on the page. The variable
   order number, ideally, will be passed from page to page via a url query parameter.
 * As mentioned above, I can retrieve the order number quite easily in the page 
   template and place it in what I believed was a global variable.
 * So, I went to a page, and changed
    `<a href="http://aamorders.curreyadkins.com/
   aam1000.cgi?PAGE=4">` to `<a href="http://aamorders.curreyadkins.com/aam1000.
   cgi?PAGE=4&ORDERNUMBER=[php]echo $ORDER_NUMBER[/php]">` and voila – the code 
   was broken, and I end up with an actual `</br>`(break), so no href.
 * I can even change the php at the ‘echo’ part to utilize the add_query_arg function(
   in place of the global variable), and as long as everything in the function is
   literal, I’m ok. But, as soon as I change anything to be a variable, the html
   is broken.
 * Again: php noob, html half-wit. But I have a good heart 🙂 If anyone has experienced
   this, whether or not in the Allow PHP in Posts and Pages plugin, please…..help?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Passing a variable value from WordPress pages to an external cgi application](https://wordpress.org/support/topic/passing-a-variable-value-from-wordpress-pages-to-an-external-cgi-application/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/passing-a-variable-value-from-wordpress-pages-to-an-external-cgi-application/#post-3059007)
 * Phil, thanks for your response. I haven’t spent a lot of time on this, but, today
   I dedicated a few hours and here is what I’ve come up with.
 * I’ve added into my functions.php file code to ‘register’ a query parm:
 *     ```
       add_filter('query_vars', 'lg_queryvars' );
       function lg_queryvars( $qvars ) {
         $qvars[] = 'ORDERNUMBER';
         return $qvars;
         }
       ```
   
 * and, in the page template, added a global variable $ORDER_NUMBER and the following
   code:
 *     ```
       <?php $ORDER_NUMBER = $wp_query->query_vars['ORDERNUMBER'];
         echo $ORDER_NUMBER; ?>
       ```
   
 * (the echo is just so I can see that I’m retreiving it)
 * so that now, in the cgi I can craft a url that includes, at the end, the code**?
   ORDERNUMBER=12345** and the first wordpress page I go to can pick it up out of
   the url and display it. My thought is I’d like to keep the consistency in place,
   and simply pass the order number as part of the query string in all of the pages…
 * Now, I’m trying to figure out how to append the **?ORDERNUMBER=12345** on each
   url after that.
 * I’ve tried crafting the href as follows:
 *     ```
       <a href="<?php echo add_query_arg('ORDERNUMBER',$ORDER_NUMBER,'http://allamericanmulch.curreyadkins.com/products/landscaping/rubber-mulch/shredded/'); ?>">
       ```
   
 * and the resulting html is broken, as when I view the source, I can see:
 *     ```
       <a href="<?php echo add_query_arg('ORDERNUMBER',$ORDER_NUMBER,'http://allamericanmulch.curreyadkins.com/products/landscaping/rubber-mulch/shredded/'); ?>“>
       ```
   
 * with, of course, the ‘“’ resulting in the character ‘ ” ‘, and everything to 
   the tag disappearing from the page 🙁
 * The site is really quite simple, mostly images, with a link to another page under
   each image. The href code above was entered via the admin page; again, being 
   a php dunce, I ask the following questions:
 * a) does anyone familiar with the add_query_arg function see what I’ve done wrong
   above, and if so, could you give me a clue?
 * b) can the php function be embedded in the href?
 * and
 * c) since I’m trying to keep the site simple, with only one page template, am 
   I out of my bloody mind? (that’s just a lil’ frustration, there)
 * Thanks in advance…..
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Passing a variable value from WordPress pages to an external cgi application](https://wordpress.org/support/topic/passing-a-variable-value-from-wordpress-pages-to-an-external-cgi-application/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/passing-a-variable-value-from-wordpress-pages-to-an-external-cgi-application/#post-3058840)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Linking to non-WordPress executables](https://wordpress.org/support/topic/linking-to-non-wordpress-executables/)
 *  Thread Starter [sdoss](https://wordpress.org/support/users/sdoss/)
 * (@sdoss)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/linking-to-non-wordpress-executables/#post-2383678)
 * Well, you can mark this as resolved. We decided to have the .cgi run from another
   directory, under a different virtual host.

Viewing 15 replies - 1 through 15 (of 60 total)

1 [2](https://wordpress.org/support/users/sdoss/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/sdoss/replies/page/3/?output_format=md) 
[4](https://wordpress.org/support/users/sdoss/replies/page/4/?output_format=md) 
[→](https://wordpress.org/support/users/sdoss/replies/page/2/?output_format=md)