infinityx78
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Company Elite] Search results formatting is brokenThanks!
Thanks for the explanation. I did remember some oddities with multiple usages but couldn’t find a pattern, and this explains it.
I mostly use the shortcode version as it’s much more powerful so the widget isn’t as important to me personally, but I agree with you that while detecting the current category isn’t a priority, it would be good to make the widgets display the same results in the future.
The test site is using 0.75.2 with the one line change. Yes, I see that in the first link, the name doesn’t match. The second link is special I think because it’s either a blog page or a home page.
Forum: Plugins
In reply to: [Advanced Sidebar Menu] Widget not showing up at allThat is neat! Thanks for the fast reply!
Yes, I am seeing different results. I set up a test site here with two widgets in the sidebar. One is using shortcode, and the second is using the widget. You get different results for the two widgets at: https://old-fogyish-thirtee.000webhostapp.com/category/level1/
and at the root: https://old-fogyish-thirtee.000webhostapp.com/ which is a blog page.
You don’t get different results with all URLs, just some, and I don’t know exactly when. This makes me think the widget is detecting the category differently than the shortcode.Forum: Plugins
In reply to: [List category posts] catlink on title field of widget does not workYes, I tested your version and it’s indeed working. Thanks!
Example here: https://old-fogyish-thirtee.000webhostapp.com/test-post/
Forum: Plugins
In reply to: [List category posts] catlink on title field of widget does not workHmm, I am seeing different behavior than before. Now when I put in catlink, it’s showing a blank. It’s possible that before I had a hidden space after “catlink” so it printed the word catlink in the title.
As for now, why it’s showing up as blank, it’s only blank if I choose “Current category” for the category. It works just as expected if I choose a category. “catname” still works right if I choose “Current category”.
Forum: Plugins
In reply to: [List category posts] catlink on title field of widget does not workAre you testing it in the widget? The shortcode works fine.
Forum: Plugins
In reply to: [List category posts] feature request: catname_tag, catname_classAh, yes, that appears to be what I want. I now see catlink_tag and catlink_class under https://github.com/picandocodigo/List-Category-Posts/wiki/HTML-&-CSS-Customization. I missed these options because I usually refer to https://github.com/picandocodigo/List-Category-Posts/wiki/More-parameters-you-can-use.
There seems to be a bit of inconsistency between conditional_tag/class, and catlink_tag/class. If I use
conditional_title=Test conditional_class=widget-title
, I will get what I want:<h3 class="widget-title">
. However if I similarly docatname=yes catlink_class=widget-title
, I will only get a<strong>
. If I specify acatlink_tag
with it likecatname=yes catlink_tag=h3 catlink_class=widget-title
, then I will get what I want:<h3 class="widget-title">
. I was wondering why forconditional_title
I didn’t need to specifyconditional_title_tag
to get what I want, but I had to specifycatlink_tag
forcatname
. I am guessing it’s becauseconditional_title_tag
defaults to h3, whilecatlink_tag
doesn’t default to anything?Thanks for responding and for this very thorough and well documented plug-in!
I think I found the problem. I believe it’s line 62 in include/lcp-category.php.
61 public function current_category(){ 62 $category = get_category( get_query_var( 'category' ) ); 63 if( isset( $category->errors ) && $category->errors["invalid_term"][0] == __(" Empty Term.") ){ 64 global $post; 65 $categories = get_the_category($post->ID); 66 if ( !empty($categories) ){ 67 return $categories[0]->cat_ID; 68 } else { 69 return; 70 } 71 } 72 return $category->cat_ID; 73 }
That line should be:
$category = get_category( get_query_var( 'cat' ) );
Using ‘cat’, $category will contain valid data when you are viewing a category. Using ‘category’ always return error.This only fixes it in the shortcode. The widget is unaffected.
- This reply was modified 7 years, 1 month ago by infinityx78.
Forum: Themes and Templates
In reply to: [OceanWP] Customizer takes a long time to loadHi, I tried a fresh install of WP, removed all plugins, and then installed the theme.
When I clicked customize, it took about four seconds to fully load on my laptop and about three seconds on my desktop. This is on a fresh install. On a different install where I had done some work, it took seven to eight seconds to fully load the customize page on my laptop. All of the other themes I’ve tried including all of the pre-installed WP default themes fully load the customize page in under one second.
The web site created using the theme works well. It’s just the customize screen for configuring the theme that is slow to load.
- This reply was modified 7 years, 1 month ago by infinityx78.
Forum: Plugins
In reply to: [Sticky Menu & Sticky Header] High CPU usage until header “sticks”Thanks for writing this plugin!
I put up a test page here: https://old-fogyish-thirtee.000webhostapp.com/
The CPU usage isn’t enough to cause any performance issues so I doubt anyone would notice. I just happen to watch my CPU all the time so I noticed the extra load. Let me know if you need anything else.