victorwyee
Forum Replies Created
-
Forum: Plugins
In reply to: [Crayon Syntax Highlighter] Crayons inside TablePress cellsHi Tobias,
Thanks for a second suggestion. Unfortunately, it didn’t work either… ??
Thanks again though!
VictorForum: Plugins
In reply to: [Crayon Syntax Highlighter] Crayons inside TablePress cellsHi Tobias! Thanks for such a quick reply! And thanks for such a wonderful plugin.
Unfortunately, your suggestion doesn’t seem to work. But it’s OK; I’m putting code snippets in a TablePress table, and just thought it’d be nice (but not necessary) to have some highlighting.
Thanks again!
VictorForum: Plugins
In reply to: [WP-SimpleViewer] Render SimpleViewer before rest of postThanks Steven! The second suggestion worked (and incidentally all of my galleries so far have the same height); the height attribute reserves some whitespace for SimpleViewer. The first suggestion didn’t seem to make any noticeable effect.
Thanks again for your help!
Forum: Plugins
In reply to: [Easy Table] Load Easy Table CSS in front pageSorry — should’ve looked closer at the settings! Thanks for your help!
Forum: Plugins
In reply to: [Easy Table] links and commas in a cellThe problem is you have double quotes inside your string, i.e., around “link”. You need to either change those double quotes to single quotes, or escape them by adding another pair of double quotes around them. So either one of these would work:
"<a href='link'>cell, two</a>" "<a href=""link"">cell, two</a>"
By the way,
"<a href=\"link\">cell, two</a>"
would also escape the double quotes but would also break your link.I also have this question. I was checking for things that were making my wordpress install slow, and found that https://example.com/wp-admin/admin-ajax.php?action=crayon-tag-editor&is_admin=0&version=2.4.0 is being requested on every page whether or not the page contains a crayon-highlighted code snippet. Moreover, as dragonslayerde said, this request returns Crayon’s backend settings page (as seen in Chrome Inspector’s preview) even when I’m not logged into the wordpress install.
Any fix?
Forum: Plugins
In reply to: [List category posts] Widget not listing category pagesOops, should’ve looked at the code more carefully earlier.
To resolve my problem, I changed the post_type that LCP was requesting to ‘any’ (see code below). I didn’t really do any debugging, so I’m not sure why LCP was behaving differently between posts and pages. My guess is that LCP determines the post_type from the current post/page you’re viewing (since I didn’t see any way to set post_type in the widget options).
I currently have LCP version 0.30.3. In include/CatList.php, I changed lines 53-55 from
if($this->lcp_not_empty('post_type')): $args['post_type'] = $this->params['post_type']; endif;
to
$args['post_type'] = 'any';