Michal z typeofweb.com
Forum Replies Created
-
I managed to solve this problem with a short piece of code in my functions.php file:
// hide single page for hidden products add_action('wp', function () { global $post; if (is_product()) { $product = wc_get_product($post->ID); if ($product->catalog_visibility === 'hidden') { global $wp_query; $wp_query->set_404(); status_header(404); } } });
- This reply was modified 4 years, 8 months ago by Michal z typeofweb.com.
Forum: Plugins
In reply to: [Disqus Latest Comments Addon] Plugin caching for 2 monthsI solved the problem by running the following SQL query:
DELETE FROM
wp_options
WHERE (option_name
LIKE (‘_transient_%’) ORoption_name
LIKE (‘_site_transient_%’)) ANDoption_name
LIKE (‘%itsg_dlc%’)- This reply was modified 5 years, 4 months ago by Michal z typeofweb.com.
- This reply was modified 5 years, 4 months ago by Michal z typeofweb.com.
- This reply was modified 5 years, 4 months ago by Michal z typeofweb.com.
- This reply was modified 5 years, 4 months ago by Michal z typeofweb.com.
It’s a bug in the latest version. I also experience the same problem since the update.
Forum: Plugins
In reply to: [Disqus Latest Comments Addon] wrong links to the posts in recent commentsGreat work on the new version!
There are a few minor issues though.First of all, I cannot unselect “Bypass cache” — after I save it’s still selected.
The second issue is a warning: Notice:
Undefined variable: comment_html in /…/public_html/wp-content/plugins/disqus-latest-comments/disqus-latest-comments-addon.php on line 333
Forum: Reviews
In reply to: [Orphans] [SOLVED] Doesn’t work for some posts, throws an errorHey, I’m using PHP 7.1 and WordPress 4.8.1 (it’s a fresh install but I imported some posts from an old blog).
After the update it seems to be working fine now, thanks!Forum: Fixing WordPress
In reply to: Unable to stick post when using query_postsSuper but it doesn’t help me at all. If I’d needed link to codex I would have not posted here -.-‘
Any other ideas?
Forum: Fixing WordPress
In reply to: Auto update problemNo, I didn’t.
Forum: Fixing WordPress
In reply to: Depth of page widgetI already have plugin with widget parsing php, but still I think it should go to the core in 3.0 or 3.1, what do you think?
Forum: Plugins
In reply to: the_date() problem after get_posts()How is it possible that I haven’t seen the big warning in codex? o.O
Problem solved, sorry for my stupidity.Forum: Alpha/Beta/RC
In reply to: get_option and unserialize problems…I already mailed him ??
Forum: Alpha/Beta/RC
In reply to: get_option and unserialize problems…Thank’s a lot, that explains everything. I modified the plugin removing unnecessary serialize() and unserialize() and it works fine in both WordPress 2.9 and 3.0beta-1. ??
Forum: Fixing WordPress
In reply to: RSS Feed Validation Problem in 2.2Same problem – waiting for solve… fresh files after upgrade. (2.3.3)
Forum: Fixing WordPress
In reply to: Blank WordPress RSS feed: “XML Parsing Error: no element found”Same problem – waiting for solve… fresh files after upgrade.
Forum: Plugins
In reply to: wp-syntax pre tag vanishes.. sort of…Same problem. Can anyone help??
any attributes like <code XXX=””> or <pre XXX=””> are deleted while saving post :/ so the plugin can’t work properly.I tried also other highlighting plugins, so I think that the problem is with WP editor.