Title: theisel's Replies | WordPress.org

---

# theisel

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page Images Won't Appear on Twitter or Facebook Links](https://wordpress.org/support/topic/page-images-wont-appear-on-twitter-or-facebook-links/)
 *  [theisel](https://wordpress.org/support/users/theisel/)
 * (@theisel)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/page-images-wont-appear-on-twitter-or-facebook-links/#post-7608122)
 * Facebook & Twitter cache the meta values they use. You can purge their cache 
   via the following url’s.
 * Twitter’s card validator:
    [https://cards-dev.twitter.com/validator](https://cards-dev.twitter.com/validator)
 * Facebook url linter:
    [https://developers.facebook.com/tools/lint/](https://developers.facebook.com/tools/lint/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [website code needed ? Please Help](https://wordpress.org/support/topic/website-code-needed-please-help/)
 *  [theisel](https://wordpress.org/support/users/theisel/)
 * (@theisel)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/website-code-needed-please-help/#post-7608094)
 * Your server is executing **index.html** the one above, WordPress gets booted 
   via the **index.php**. There should be an index.php file next to index.html? 
   If so and assuming index.php is pointing to WordPress correctly then index.html
   can be deleted for index.php to be executed.
 * Check out the following link for better understanding [http://stackoverflow.com/questions/7873634/why-does-index-html-have-priority-over-index-php](http://stackoverflow.com/questions/7873634/why-does-index-html-have-priority-over-index-php)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Full Page Layout Question](https://wordpress.org/support/topic/full-page-layout-question/)
 *  [theisel](https://wordpress.org/support/users/theisel/)
 * (@theisel)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/full-page-layout-question/#post-7605351)
 * When I go to the URL that you provided I see a different layout. Are you editing
   the correct template? Removing the class “left-area” from the div will do the
   trick, based on the live template.
 * This a snippet of the source code of what i see
 *     ```
       <div id="primary" class="content-area">
         <div id="content" class="site-content" role="main">
           <div class="container">
             <div class="left-area">
               <h1 class="page-title">Shop</h1>
               <div class="page-description">
       ...
       ```
   
 * Get a copy of the current live template and compare against your current changes.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Full Page Layout Question](https://wordpress.org/support/topic/full-page-layout-question/)
 *  [theisel](https://wordpress.org/support/users/theisel/)
 * (@theisel)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/full-page-layout-question/#post-7605330)
 * Remove the class value from the following <div class=”left-area”> to read <div
   >
    I wouldn’t remove the div just in case it creates a side-effect. But feel 
   free to test it out.
 * I ran a quick check on the site and removing the class seemed to work.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: ["hide_empty" categories based on custom query on specific page](https://wordpress.org/support/topic/hide_empty-categories-based-on-custom-query-on-specific-page/)
 *  [theisel](https://wordpress.org/support/users/theisel/)
 * (@theisel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/hide_empty-categories-based-on-custom-query-on-specific-page/#post-7515864)
 * There are a couple of ways I can suggest doing this.
 *     ```
       // Variable to set your taxonomy
       $taxonomy = // :taxonomy
       ```
   
 * 1st option:
 *     ```
       $terms = get_terms(array(
           'taxonomy' => $taxonomy,
           'hide_empty' => true,
           'fields' => 'ids'
       ));
   
       $company = new WP_Query(array(
           'post_type' => 'company',
           'posts_per_page' => -1,
           'meta_key' => '_thumbnail_id', // No side effect
           'orderby' => 'rand',
           'meta_query' => array(
               array(
                   'key' => '_company_package',
                   'value' => 4,
                   'compare' => '='
               ),
           ),
           'tax_query' => array(
               array(
                     'taxonomy' => $taxonomy,
       	      'field'    => 'term_id',
       	      'terms'    => $terms,
       	      'operator' => 'IN',
       	),
           )
       ));
       ```
   
 * 2nd option:
 *     ```
       global $wpdb;
   
       $company = $wpdb->get_results($wpdb->prepare("SELECT * from {$wpdb->prefix}posts p WHERE p.post_type = %s AND p.post_status = %s AND EXISTS (SELECT tr.object_id FROM {$wpdb->prefix}term_relationships tr INNER JOIN {$wpdb->prefix}term_taxonomy tt ON tt.term_taxonomy_id = tr.term_taxonomy_id WHERE tt.taxonomy = %s AND tt.count > 0 AND tr.object_id = p.ID) AND EXISTS (SELECT post_id FROM {$wpdb->prefix}postmeta WHERE meta_key = %s AND meta_value = %d) ORDER BY RAND()", array('company', 'publish', $taxonomy, '_company_package', 4)));
       ```
   
 * Assuming no typos these options should work…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Move to another host](https://wordpress.org/support/topic/move-to-another-host/)
 *  [theisel](https://wordpress.org/support/users/theisel/)
 * (@theisel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/move-to-another-host/#post-7505963)
 * The link provided by [@sterndata](https://wordpress.org/support/users/sterndata/)
   is a great starting point to get familiar with the process.
 * My understanding is that you have a database backup but it’s a few/some months
   old? This can be imported into your new database. If you need help ask your new
   host.
 * Your WordPress files can also be uploaded, any issues speak to your new host.
 * This all sounds easy, but tread with caution & be patient… issues may appear 
   from plugins, custom code & wp-config.php
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Move to another host](https://wordpress.org/support/topic/move-to-another-host/)
 *  [theisel](https://wordpress.org/support/users/theisel/)
 * (@theisel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/move-to-another-host/#post-7505931)
 * When you move to a new host you need to backup both WordPress files and the database.
   By sounds of it Altus have deleted your account, this will be a problem if you
   have not backed up your database in the past.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Slugs creating problem for tags with special characters](https://wordpress.org/support/topic/slugs-creating-problem-for-tags-with-special-characters/)
 *  [theisel](https://wordpress.org/support/users/theisel/)
 * (@theisel)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/slugs-creating-problem-for-tags-with-special-characters/#post-7483387)
 * I would choose a different prefix to $. The dollar sign is an URI reserved character
   and should be encoded as %24 if used.
 * But if you like living on the edge, you may use the “pre_term_slug” filter and
   prefix the passed in value with the dollar sign. However, this would be a bad
   idea!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Turn category name into a link](https://wordpress.org/support/topic/turn-category-name-into-a-link/)
 *  [theisel](https://wordpress.org/support/users/theisel/)
 * (@theisel)
 * [10 years ago](https://wordpress.org/support/topic/turn-category-name-into-a-link/#post-7470785)
 * This page under the heading “User Contributed Notes” > “Show All Categories as
   Links” has sample code on how it can be done.
 * [https://developer.wordpress.org/reference/functions/get_the_category/](https://developer.wordpress.org/reference/functions/get_the_category/)

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