Contemplative Computing
Forum Replies Created
-
Forum: Plugins
In reply to: [List category posts] Output as Dropdown?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
In reply to: [List category posts] Output as Dropdown?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
In reply to: [Google Analytics Top Content Widget] Show number of views in outputOkay 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!
Got it working now. Strange. I think my problem has something to do with the plugin organizer plugin.
Forum: Plugins
In reply to: [Google Analytics Top Content Widget] Show number of views in outputIt 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.
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,
MatthewSame error here
Forum: Plugins
In reply to: [WP Super Cache] I cant get my homepage to show changes I make, please help!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.
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 - https://yoast.com/wordpress/seo/ --> <meta name="description" content="blah blah blah"/> <link rel="canonical" href="https://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='https://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='https://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.
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
In reply to: [Yoast SEO] Not compatible with "Business Directory Plugin" listingsFor me Yoast isn’t loading at all on my Business Directory pages, but still works fine everywhere else on my site.
Forum: Plugins
In reply to: [Google Analytics Top Content Widget] Show number of views in outputGreat, thanks Justin! I am now officially a huge fan of your plugin. Maybe I’ll blog about it. ??
Forum: Plugins
In reply to: [Google Analytics Top Content Widget] Show number of views in outputI tried that and the <span> tag wouldn’t go through using the filter. Any suggestions?
Forum: Plugins
In reply to: [Google Analytics Top Content Widget] Show number of views in outputMy 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
In reply to: [Google Analytics Top Content Widget] Show number of views in outputI would like to be able to style the view counter separately, which would require a separate html element from the title.