Title: Danstano's Replies | WordPress.org

---

# Danstano

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] Blank plugins.php page](https://wordpress.org/support/topic/blank-plugins-php-page/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/blank-plugins-php-page/#post-16285575)
 * Everything is back and working well. I have no way of replicating the earlier
   issue unfortunately. Appears to be some conflict with another plugin but I will
   report here if I come across the same issue. I will close the thread since this
   is resolved for now.
 * Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets] pmxi_saved_post action not working when updating records, works for new posts](https://wordpress.org/support/topic/pmxi_saved_post-action-not-working-when-updating-records-works-for-new-posts/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/pmxi_saved_post-action-not-working-when-updating-records-works-for-new-posts/#post-15817815)
 * This is what I am doing.
 * 1. I have custom post types that store data inside wp_postmeta. So because my
   data is growing, I decided to have it inside custom tables.
 * 2. Using your rapid-addon.php I added the code in myfile.php
 *     ```
       function get_import_post_type($continue_import, $current_xml_node, $import_id)
               {
   
                   // Retrieve import object.
                   $import = new PMXI_Import_Record();
                   $import->getById($import_id);
   
                   // Ensure import object is valid.
                   if (!$import->isEmpty()) {
   
                       // Retrieve post type.
                       $post_type = $import->options['custom_type'];
   
                       if ($post_type === 'fixture-result') {
                           function save_fr_data_to_custom_database_table($post_id)
                           {
                               // Make wpdb object available.
                               global $wpdb;
   
                               // Retrieve value to save.
                               $value = get_post_meta($post_id, 'fixtures_results', true);
   
                               // Define target database table.
                               $table_name = $wpdb->prefix . "fixtures_results";
   
                               // Insert value into database table.
                               $wpdb->insert($table_name, array('ID' => $post_id, 'fixtures_results' => $value), array('%d', '%s'));
   
                               // Delete temporary custom field.
                               delete_post_meta($post_id, 'fixtures_results');
   
                           }
   
                           add_action('pmxi_saved_post', 'save_fr_data_to_custom_database_table', 10, 1);
   
                       } else {
                       }
                   }
                   return true;
               }
   
               add_filter('wp_all_import_is_post_to_create', 'get_import_post_type', 10, 3);
           }
       }
       custom_table_data_add_on::get_instance();
       ```
   
 * 3. So now the data imports well into the custom tables BUT only when I run the
   first time for new posts. When something changes in my csv and plugin has to 
   update records, I see the data inside wp_postmeta table and record in my custom
   table remains unchanged instead of getting updated. I’m I missing something? 
   For new posts, everything works well (data is stored in custom table & wp_postmeta
   data is cleared.)
 * Maybe checking my code can there can help point towards an issue.
 * Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Adding custom data to the page analysis from custom field](https://wordpress.org/support/topic/adding-custom-data-to-the-page-analysis-from-custom-field/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-data-to-the-page-analysis-from-custom-field/#post-14262661)
 * That’s more clarity.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Adding custom data to the page analysis from custom field](https://wordpress.org/support/topic/adding-custom-data-to-the-page-analysis-from-custom-field/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-data-to-the-page-analysis-from-custom-field/#post-14262470)
 * Hi, I’m doing this on localhost so there is no risk of breaking anything.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Enhanced Text Widget] analyst misbehaving](https://wordpress.org/support/topic/analyst-misbehaving/)
 *  [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/analyst-misbehaving/#post-13833449)
 * How did you solve this? This popup is stressing me out.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Astra] Not Working with JS code](https://wordpress.org/support/topic/not-working-with-js-code/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/not-working-with-js-code/#post-13447894)
 * I always thought this is marked resolved after the issue is complete. And thanks
   for the attention on my issue.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Astra] Not Working with JS code](https://wordpress.org/support/topic/not-working-with-js-code/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/not-working-with-js-code/#post-13445504)
 * Hi Herman, the issue is still unresolved. I sent the logins as you requested 
   me days ago but still facing the problem. As above you said you were going to
   have a look at my site and requested that I sent you my logins. The calendar 
   js code is working perfectly on other themes. I have tested that with multiple
   themes. I am just facing the issue with Astra. The only way this can be fixed
   is if you spared some time to have a look. It’s days but I’m still patient that
   you might have a chance to look at what’s going on. I don’t want to give up this
   theme.
    -  This reply was modified 5 years, 9 months ago by [Danstano](https://wordpress.org/support/users/danstano/).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Astra] Not Working with JS code](https://wordpress.org/support/topic/not-working-with-js-code/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/not-working-with-js-code/#post-13437464)
 * Hi,
 * I sent a support ticket yesterday.
 * Thank you.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Astra] My template for custom post type is not working](https://wordpress.org/support/topic/my-template-for-custom-post-type-is-not-working/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [6 years ago](https://wordpress.org/support/topic/my-template-for-custom-post-type-is-not-working/#post-13099150)
 * As long as my code is working, who cares. Thank you.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Astra] My template for custom post type is not working](https://wordpress.org/support/topic/my-template-for-custom-post-type-is-not-working/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [6 years ago](https://wordpress.org/support/topic/my-template-for-custom-post-type-is-not-working/#post-13096137)
 * Unfortunately, I am working on localhost at the moment. This is what I have tried
   to come up with. I was unable to connect to adapt the content-single.php page
   so I decided to duplicate the single-team.php and do this below. Please help 
   me troubleshoot any errors, just fumbled as far as I know. This is strange land
   🙂
 *     ```
       <?php
       /**
        * The template for displaying all single posts.
        *
        * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
        *
        * @package Astra
        * @since 1.0.0
        */
       if ( ! defined( 'ABSPATH' ) ) {
       	exit; // Exit if accessed directly.
       }
       get_header(); ?>
       	<?php astra_entry_top(); ?>
       <h1 class= "entry-title"> <?php the_title(); ?> </h1>
       <div class="entry-content clear" itemprop="text">
       <!--content -->
       </div>
       <?php astra_entry_bottom(); ?>
   
       </article><!-- #post-## -->
   
       <?php astra_primary_content_bottom(); ?>
       </div><!-- #primary -->
       <?php if ( astra_page_layout() == 'right-sidebar' ) : ?>
       <?php get_sidebar(); ?>
       <?php endif ?>
       <?php get_footer(); ?>
       ```
   
    -  This reply was modified 6 years ago by [Danstano](https://wordpress.org/support/users/danstano/).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Astra] Mobile menu icon doesn’t appear](https://wordpress.org/support/topic/mobile-menu-icon-doesnt-appear/)
 *  [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [6 years ago](https://wordpress.org/support/topic/mobile-menu-icon-doesnt-appear/#post-13093884)
 * Sorry for interjecting but it looks to me that you’re missing this [https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css](https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Astra] My template for custom post type is not working](https://wordpress.org/support/topic/my-template-for-custom-post-type-is-not-working/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [6 years ago](https://wordpress.org/support/topic/my-template-for-custom-post-type-is-not-working/#post-13093781)
 * Thanks, I have followed the link you gave. Found the file content-single.php 
   but how do I adapt it to be used on my the custom post type. I tried adding some
   code but it shows up in other post types as well. I duplicated the content-single.
   php and renamed it content-single-teams.php but it won’t work. Looks like I am
   supposed to add some code into the single-teams.php so that it finds the right
   file content-single-teams.php but I don’t know how to go about it.
    -  This reply was modified 6 years ago by [Danstano](https://wordpress.org/support/users/danstano/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SportsPress - Sports Club & League Manager] sp_team field importing – how to separately import home/away teams](https://wordpress.org/support/topic/sp_team-field-importing-how-to-separately-import-home-away-teams/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [6 years ago](https://wordpress.org/support/topic/sp_team-field-importing-how-to-separately-import-home-away-teams/#post-13000315)
 * The import plugin author has helped fix it. Thanks to you for the kind response!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SportsPress - Sports Club & League Manager] sp_team field importing – how to separately import home/away teams](https://wordpress.org/support/topic/sp_team-field-importing-how-to-separately-import-home-away-teams/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [6 years ago](https://wordpress.org/support/topic/sp_team-field-importing-how-to-separately-import-home-away-teams/#post-13000245)
 * Thanks for the input. But the limit I have right now for the default import is
   that you need to import to one league/tournament at a time. I commend you for
   the forward thinking and that’s the beauty of this plugin. But here is a concern,
   I am trying to import those tens of teams but my teams belong in different leagues.
   Maybe I didn’t put this well, I don’t really need a new column for the away team,
   I only need to import the teams so that 1234|3222 in my file imports to the home
   and away teams respectively. Everything else as regards the import works perfectly
   except for this bit. Kindly, please let me know if there’s a way forward. I like
   the plugin that’s for sure but I’m stuck here. Please
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SportsPress - Sports Club & League Manager] sp_team field importing – how to separately import home/away teams](https://wordpress.org/support/topic/sp_team-field-importing-how-to-separately-import-home-away-teams/)
 *  Thread Starter [Danstano](https://wordpress.org/support/users/danstano/)
 * (@danstano)
 * [6 years ago](https://wordpress.org/support/topic/sp_team-field-importing-how-to-separately-import-home-away-teams/#post-12996126)
 * All I need is the Home Team and Away Team in separate columns not rows. Please
   let me know whether this is possible,
 * My appreciation.

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

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