Title: Contemplative Computing's Replies | WordPress.org

---

# Contemplative Computing

  [  ](https://wordpress.org/support/users/contemplative-computing/)

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[List category posts] Output as Dropdown?](https://wordpress.org/support/topic/output-as-dropdown/)
 *  Thread Starter [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/output-as-dropdown/#post-3542726)
 * If you aren’t comfortable with troubleshooting the PHP, then I’d recommend trying
   this code on a live server before fretting about it further. It might well have
   to do with the way permalinks are formed on a localhost. Who knows? I have never
   developed that way.
 * Also, it might be worth checking/resetting your permalink settings.
 * Finding another way to test the output of that string in this case is slightly
   complicated. Take the easy steps first. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[List category posts] Output as Dropdown?](https://wordpress.org/support/topic/output-as-dropdown/)
 *  Thread Starter [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/output-as-dropdown/#post-3542724)
 * The output URL is generated by the first two lines of the loop in the template,
   specifically:
 *     ```
       $permalink .= get_permalink($single->ID);
   
       $lcp_display_output .= '<option value="' .$permalink. '">';
       ```
   
 * Whatever is going wrong is probably happening there.
 * I would first test the output of **get_permalink($single->ID)**, which may not
   be working properly on your local server. If that function is outputting the 
   permalink correctly, then something weird is going on with the way your browser
   is interpreting the options. I might try another browser to rule out a client-
   related error.
 * That’s all I can think of right now. Hope you get it worked out!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics Top Content Widget] Show number of views in output](https://wordpress.org/support/topic/show-number-of-views-in-output/)
 *  Thread Starter [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/show-number-of-views-in-output/#post-3769474)
 * Okay something was weird in my installation where changes were not going through
   right away. I think it had to do with the plugin organizer plugin. All good now!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics Top Content Widget] Top Viewed Content – Couple of Tweeks Needed](https://wordpress.org/support/topic/top-viewed-content-couple-of-tweeks-needed/)
 *  [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/top-viewed-content-couple-of-tweeks-needed/page/2/#post-3431202)
 * Got it working now. Strange. I think my problem has something to do with the 
   plugin organizer plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics Top Content Widget] Show number of views in output](https://wordpress.org/support/topic/show-number-of-views-in-output/)
 *  Thread Starter [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/show-number-of-views-in-output/#post-3769472)
 * It looks like you changed the code for these lines, adding an apply_filters()
   to the
    list item output, and now I cannot seem to get this hack/filter working
   again. Would you please let me know how to display the views of the post using
   the newer version of the plugin?
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics Top Content Widget] Top Viewed Content – Couple of Tweeks Needed](https://wordpress.org/support/topic/top-viewed-content-couple-of-tweeks-needed/)
 *  [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/top-viewed-content-couple-of-tweeks-needed/page/2/#post-3431199)
 * Justin the filter you suggested seems to no longer work for adding a view counter
   in the newest version of the plugin (WP 3.6). Could you point us to what needs
   to change?
 * Thanks,
    Matthew
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin Organizer] Fatal error: Call to a member function get_page_permastruct()](https://wordpress.org/support/topic/fatal-error-call-to-a-member-function-get_page_permastruct-1/)
 *  [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-a-member-function-get_page_permastruct-1/#post-3881805)
 * Same error here
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Super Cache] I cant get my homepage to show changes I make, please help!](https://wordpress.org/support/topic/i-cant-get-my-homepage-to-show-changes-i-make-please-help/)
 *  [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/i-cant-get-my-homepage-to-show-changes-i-make-please-help/#post-3790732)
 * You need to go to Settings > WP-Super-Cache to adjust your settings. If you are
   logged in to your own site you shouldn’t be seeing cached pages with the default
   settings.
 * If you want to clear the cache you can go to the “Contents” tab to do that.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Business Directory Plugin - Easy Listing Directories for WordPress] Directory Title Tags Generic](https://wordpress.org/support/topic/directory-title-tags-generic/)
 *  [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/directory-title-tags-generic/#post-3269826)
 * What I mean is that I do not see this section in my header, as I do on other 
   posts/pages:
 *     ```
       <!-- This site is optimized with the Yoast WordPress SEO plugin v1.4.7 - http://yoast.com/wordpress/seo/ -->
       <meta name="description" content="blah blah blah"/>
       <link rel="canonical" href="http://example.com/2013/05/enough-with-the-questions/" />
       <meta property='og:locale' content='en_US'/>
       <meta property='og:type' content='article'/>
       <meta property='og:title' content='Enough with the Questions! - Example'/>
       <meta property='og:url' content='http://example.com/2013/05/enough-with-the-questions/'/>
       <meta property='og:site_name' content='Example'/>
       <meta property='fb:admins' content='589237582'/>
       <meta name="twitter:card" content="summary"/>
       <meta name="twitter:site" content="@Example"/>
       <meta name='twitter:image' content='http://example/logo-white.png'/>
       <meta name="twitter:description" content="blah blah blah"/>
       <!-- / Yoast WordPress SEO plugin. -->
       ```
   
 * I did work out getting the titles back at least, but not this other data.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Business Directory Plugin - Easy Listing Directories for WordPress] Directory Title Tags Generic](https://wordpress.org/support/topic/directory-title-tags-generic/)
 *  [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [13 years ago](https://wordpress.org/support/topic/directory-title-tags-generic/#post-3269824)
 * Any more on this? For me Yoast does not load at all on Business Directory Pages,
   but works fine elsewhere on the site.
 *   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] Not compatible with "Business Directory Plugin" listings](https://wordpress.org/support/topic/not-compatible-with-business-directory-plugin-listings/)
 *  [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [13 years ago](https://wordpress.org/support/topic/not-compatible-with-business-directory-plugin-listings/#post-3587935)
 * For me Yoast isn’t loading at all on my Business Directory pages, but still works
   fine everywhere else on my site.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics Top Content Widget] Show number of views in output](https://wordpress.org/support/topic/show-number-of-views-in-output/)
 *  Thread Starter [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [13 years ago](https://wordpress.org/support/topic/show-number-of-views-in-output/#post-3769258)
 * Great, thanks Justin! I am now officially a huge fan of your plugin. Maybe I’ll
   blog about it. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics Top Content Widget] Show number of views in output](https://wordpress.org/support/topic/show-number-of-views-in-output/)
 *  Thread Starter [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [13 years ago](https://wordpress.org/support/topic/show-number-of-views-in-output/#post-3769196)
 * I tried that and the <span> tag wouldn’t go through using the filter. Any suggestions?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics Top Content Widget] Show number of views in output](https://wordpress.org/support/topic/show-number-of-views-in-output/)
 *  Thread Starter [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [13 years ago](https://wordpress.org/support/topic/show-number-of-views-in-output/#post-3769189)
 * My solution:
 * Just below line 318
    `$pageviews = $page['children']['children']['ga:pageviews'];`
 * Then edit line 389
 * `$list .= '<li><a href="' . $url . '">' . $title . '</a> <span class="gtc_pageviews"
   >['.$pageviews.' Views]</span></li>';`
 * Add css for .gtc_pageviews at your discretion.
 * Easy, thanks to the author’s help finding the value in the nested arrays.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics Top Content Widget] Show number of views in output](https://wordpress.org/support/topic/show-number-of-views-in-output/)
 *  Thread Starter [Contemplative Computing](https://wordpress.org/support/users/contemplative-computing/)
 * (@contemplative-computing)
 * [13 years ago](https://wordpress.org/support/topic/show-number-of-views-in-output/#post-3769182)
 * I would like to be able to style the view counter separately, which would require
   a separate html element from the title.

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

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