Title: preben89's Replies | WordPress.org

---

# preben89

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] So… Does cross-domain work?](https://wordpress.org/support/topic/so-does-cross-domain-work/)
 *  [preben89](https://wordpress.org/support/users/preben89/)
 * (@preben89)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/so-does-cross-domain-work/#post-4178259)
 * I noticed that you need to add the external domains you want to add exactly as
   the example, which might be why it didn’t work for me earlier. (I had http, and
   the url ended with /. In the code it probably adds the / itself.)
 * But even though it seems to correctly add the onclick events for me, it still
   doesn’t add utm-parameters in the url by itself.
 * Is it hidden, or just set up wrong?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error with "return get_post()->ID;" after deleting a translated post](https://wordpress.org/support/topic/error-with-return-get_post-id-after-deleting-a-translated-post/)
 *  Thread Starter [preben89](https://wordpress.org/support/users/preben89/)
 * (@preben89)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-with-return-get_post-id-after-deleting-a-translated-post/#post-4252631)
 * I also noticed another error in the source code:
    [http://d.pr/i/70wu](http://d.pr/i/70wu)
 * The code it is referring to is this:
 *     ```
       <div class=”submenu”>
   
       <?php
   
       $i = 1;
   
       while(has_sub_field(“sections”))
       {
       if (get_sub_field(“title”) && $i != 1) {
       echo ‘<a
       onclick=”_gaq.push(['_trackPageview', '/' . strip_tags(get_sub_field("title")) . '']);”
       data-url=”‘ . sanitize_title_with_dashes(get_sub_field(“title”)) . ‘-section’ . ‘”>’ . strip_tags(get_sub_field(“title”)) . ‘‘;
   
       }
       $i++;
       }
       ?>
       </div>
       ```
   
 * while(has_sub_field(“sections”)) is the code on line 169.
 * Are there any chance the errors might be related?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error with "return get_post()->ID;" after deleting a translated post](https://wordpress.org/support/topic/error-with-return-get_post-id-after-deleting-a-translated-post/)
 *  Thread Starter [preben89](https://wordpress.org/support/users/preben89/)
 * (@preben89)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-with-return-get_post-id-after-deleting-a-translated-post/#post-4252472)
 * Btw, the code for index.php is:
 *     ```
       <?php /* Main post template file */ ?>
   
       <?php get_header(); 
   
       exit;
   
       ?>
       <article class="article">
       <?php
       	// get this page
       get_template_part('part-page');
   
       // get all child pages and output them
       $the_query = new WP_Query('orderby=menu_order&order=ASC&post_type=page&post_parent='.get_the_ID());
   
       while ( $the_query->have_posts() ) : $the_query->the_post();
       	get_template_part('part-page');
       endwhile;
   
       ?>
   
       </article>
   
       <?php 
   
       get_footer();
       ?>
       ```
   

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