Title: stuk88's Replies | WordPress.org

---

# stuk88

  [  ](https://wordpress.org/support/users/stuk88/)

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GN Publisher: Google News Compatible RSS Feeds] thumbnail not showing](https://wordpress.org/support/topic/thumbnail-not-showing-15/)
 *  [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/thumbnail-not-showing-15/#post-14637311)
 * [https://support.google.com/news/publisher-center/answer/9545420?hl=en](https://support.google.com/news/publisher-center/answer/9545420?hl=en)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GN Publisher: Google News Compatible RSS Feeds] thumbnail not showing](https://wordpress.org/support/topic/thumbnail-not-showing-15/)
 *  [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/thumbnail-not-showing-15/#post-14637310)
 * So i’ve tried to remove the fetaured image from the content and add it as a media
   tag, as google instructing.
    Will update if it works.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Rackspace CDN] Blank screen](https://wordpress.org/support/topic/blank-screen-49/)
 *  [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/blank-screen-49/#post-5773079)
 * same problem here
    wp 4.1
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Enable comments on Custom Post Types](https://wordpress.org/support/topic/enable-comments-on-custom-post-types/)
 *  [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/enable-comments-on-custom-post-types/#post-2927938)
 * or actually you could change the source code and submit your change to the plugin
   developers source code within github (most of the e-commerce plugins have a github
   open project)
 * so how to find where in the plugin you should change the supports line…
 * _on woocommerce plugin i did that, that way:_
    while using sublime text editor
   I’ve searched all the files for the occurrence of the phrase: `'supports'` and
   that found me a couple of results but on the second result (the first find was
   a comment) I`ve got the code that declares new custom post type called “product”
 * so the string is in woocommerce/woocommerce.php file (in your plugins directory)
   
   on line 982
 * so just after
    `, 'page-attributes'` add the following in the same line: `,'comments'`
 * and save the file and upload to the server.
    And that is it.
 * you’ve added to the ‘product’ custom post type declaration the option of comments
   in this custom post type.
 * <em>a couple of foot notes:</em>
    your are changing the source code of the plugin.
   the next time the plugin goes for an upgrade all your changes will be deleted,
   and you will have to do this process again from the start.
 * I think there is a way to re-declare the product custom post type with the new
   added support option, with calling this function with its attributes:
    `register_post_type`
   but i suggest that everybody should check that option only if they already know
   how to write php arrays and call functions…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Attachments] field with utf8 lanuguage](https://wordpress.org/support/topic/field-with-utf8-lanuguage/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/field-with-utf8-lanuguage/#post-3766057)
 * got it fixed.
    add a line of code:
 *  $attachments = str_replace(‘\\’, ‘\\\\’, $attachments);
 * in the file class.attachments.php line 1556.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [wp-signup redirect to front page after sub-directory switch](https://wordpress.org/support/topic/wp-signup-redirect-to-front-page-after-sub-directory-switch/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/wp-signup-redirect-to-front-page-after-sub-directory-switch/#post-1758309)
 * okay found it.
    in the table wp_sitemeta the siteurl meta have not changed. so
   i`ve changed it. and its was all okay =]
 * thx for reading while I was thinking. 😀
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [wp-signup redirect to front page after sub-directory switch](https://wordpress.org/support/topic/wp-signup-redirect-to-front-page-after-sub-directory-switch/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/wp-signup-redirect-to-front-page-after-sub-directory-switch/#post-1758305)
 * yea firebug given me the aswer again
    wp-signup page says
 * > Failed to load source for: [http://MYDOMAIN.com/wp-signup.php](http://MYDOMAIN.com/wp-signup.php)
 * without the www.
    but after i disabled the www removal the link of the main site
   is including www somehow the signup page checks for its own domain link saved
   somewhere…
 * where should i look for its domain setting?
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [wp-signup redirect to front page after sub-directory switch](https://wordpress.org/support/topic/wp-signup-redirect-to-front-page-after-sub-directory-switch/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/wp-signup-redirect-to-front-page-after-sub-directory-switch/#post-1758303)
 * after a quick check i noticed that i cant open pages, it just redirects me back
   to the main front page.
    after changing the permalink of the page, I was able
   to open the page. But still cant open the wp-signup page…
 * any lead to where i need to search for its permalink? or rewrite rule?
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [wp-signup redirect to front page after sub-directory switch](https://wordpress.org/support/topic/wp-signup-redirect-to-front-page-after-sub-directory-switch/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/wp-signup-redirect-to-front-page-after-sub-directory-switch/#post-1758297)
 * I`ve checked all that…
    the file is there…
 * the weird thing is that when i try to open other PHP file that I made, its not
   redirecting me … but wp-signup does…
    well i guess ill recheck the permalinks…
 * could it be an htaccess problem?
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [WordPress make too many unneeded queries in front page](https://wordpress.org/support/topic/wordpress-make-too-many-unneeded-queries-in-front-page/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wordpress-make-too-many-unneeded-queries-in-front-page/#post-1712963)
 * yea i already posted in their forums…
    they said its must be a bug…
 * but i say its stupid coding… because the WP_REWRITE->FLUSH is called without 
   an if condition or action hook…
    its just there… very inefficient.
 *  thx for the info about the permalinks structure.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [WordPress make too many unneeded queries in front page](https://wordpress.org/support/topic/wordpress-make-too-many-unneeded-queries-in-front-page/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wordpress-make-too-many-unneeded-queries-in-front-page/#post-1712929)
 * well its not needed actually…
    the third line of the query array containing the
   function trace that executed the query itself.
 * it says that the function that calls that query is WP_REWRITE
    so its now depends
   on me to find what file or plugin calls the rewrite engine so many times…
 * i have discovered that the members directory plugin have been the reason of 15
   unneeded queries that auto shooted every time the page reloads … shame on wpmudev
   that developed so inefficient plugin code.
 * trying to find out what other plugins may call the rewrite engine so many times…
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [WordPress make too many unneeded queries in front page](https://wordpress.org/support/topic/wordpress-make-too-many-unneeded-queries-in-front-page/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wordpress-make-too-many-unneeded-queries-in-front-page/#post-1712917)
 * I’m using wordpress in ms state…
    And no there isn’t any buddypress plugin in
   the system…
 * The system is silly because the use of rewrite rules is miss implanted.
    the 
   sql query that does INSERT OR UPDATE to the rewrite rules every page refresh 
   is unneeded.
 * if the rewrite rules are changed the INSERT or UPDATE queries should be executed
   only when the change is being made.
    so why does they are being executed every
   page refresh?
 * moreover the queries of posts printing are made without any loop in the code!
   
   Im using the wordpress ms as i said before, and the home.php template file isnt
   containing any posts printing loop. So why the system does all that queries:
 * >  [8] => Array
   >  ( [0] => SELECT * FROM wp_1_posts WHERE ID = 135 LIMIT 1 [1]
   > => 0.000222206115723 [2] => require, require_once, require_once, require_once,
   > include_once, WP_Rewrite->flush_rules, WP_Rewrite->wp_rewrite_rules, WP_Rewrite-
   > >rewrite_rules, WP_Rewrite->page_rewrite_rules, WP_Rewrite->page_uri_index,
   > get_page_uri, get_page, get_post )
   >  [9] => Array
   >  ( [0] => SELECT ID, post_name, post_parent FROM wp_1_posts WHERE
   > post_type = ‘attachment’ AND post_parent = 135 [1] => 0.000150918960571 [2]
   > => require, require_once, require_once, require_once, include_once, WP_Rewrite-
   > >flush_rules, WP_Rewrite->wp_rewrite_rules, WP_Rewrite->rewrite_rules, WP_Rewrite-
   > >page_rewrite_rules, WP_Rewrite->page_uri_index )
   >  [10] => Array
   >  ( [0] => SELECT * FROM wp_1_posts WHERE ID = 33 LIMIT 1 [1]
   > => 0.00022292137146 [2] => require, require_once, require_once, require_once,
   > include_once, WP_Rewrite->flush_rules, WP_Rewrite->wp_rewrite_rules, WP_Rewrite-
   > >rewrite_rules, WP_Rewrite->page_rewrite_rules, WP_Rewrite->page_uri_index,
   > get_page_uri, get_page, get_post )
   >  [11] => Array
   >  ( [0] => SELECT ID, post_name, post_parent FROM wp_1_posts 
   > WHERE post_type = ‘attachment’ AND post_parent = 33 [1] => 0.000182867050171[
   > 2] => require, require_once, require_once, require_once, include_once, WP_Rewrite-
   > >flush_rules, WP_Rewrite->wp_rewrite_rules, WP_Rewrite->rewrite_rules, WP_Rewrite-
   > >page_rewrite_rules, WP_Rewrite->page_uri_index )
   >  [12] => Array
   >  ( [0] => SELECT * FROM wp_1_posts WHERE ID = 30 LIMIT 1 [1]
   > => 0.000212907791138 [2] => require, require_once, require_once, require_once,
   > include_once, WP_Rewrite->flush_rules, WP_Rewrite->wp_rewrite_rules, WP_Rewrite-
   > >rewrite_rules, WP_Rewrite->page_rewrite_rules, WP_Rewrite->page_uri_index,
   > get_page_uri, get_page, get_post )
   >  [13] => Array
   >  ( [0] => SELECT ID, post_name, post_parent FROM wp_1_posts 
   > WHERE post_type = ‘attachment’ AND post_parent = 30 [1] => 0.000151872634888[
   > 2] => require, require_once, require_once, require_once, include_once, WP_Rewrite-
   > >flush_rules, WP_Rewrite->wp_rewrite_rules, WP_Rewrite->rewrite_rules, WP_Rewrite-
   > >page_rewrite_rules, WP_Rewrite->page_uri_index )
   >  [14] => Array
   >  ( [0] => SELECT * FROM wp_1_posts WHERE ID = 18 LIMIT 1 [1]
   > => 0.000221014022827 [2] => require, require_once, require_once, require_once,
   > include_once, WP_Rewrite->flush_rules, WP_Rewrite->wp_rewrite_rules, WP_Rewrite-
   > >rewrite_rules, WP_Rewrite->page_rewrite_rules, WP_Rewrite->page_uri_index,
   > get_page_uri, get_page, get_post )
   >  [15] => Array
   >  ( [0] => SELECT ID, post_name, post_parent FROM wp_1_posts 
   > WHERE post_type = ‘attachment’ AND post_parent = 18 [1] => 0.000150918960571[
   > 2] => require, require_once, require_once, require_once, include_once, WP_Rewrite-
   > >flush_rules, WP_Rewrite->wp_rewrite_rules, WP_Rewrite->rewrite_rules, WP_Rewrite-
   > >page_rewrite_rules, WP_Rewrite->page_uri_index )
   >  [16] => Array
   >  ( [0] => SELECT * FROM wp_1_posts WHERE ID = 2 LIMIT 1 [1] 
   > => 0.000205039978027 [2] => require, require_once, require_once, require_once,
   > include_once, WP_Rewrite->flush_rules, WP_Rewrite->wp_rewrite_rules, WP_Rewrite-
   > >rewrite_rules, WP_Rewrite->page_rewrite_rules, WP_Rewrite->page_uri_index,
   > get_page_uri, get_page, get_post )
   >  [17] => Array
   >  ( [0] => SELECT ID, post_name, post_parent FROM wp_1_posts 
   > WHERE post_type = ‘attachment’ AND post_parent = 2 [1] => 0.000150918960571[
   > 2] => require, require_once, require_once, require_once, include_once, WP_Rewrite-
   > >flush_rules, WP_Rewrite->wp_rewrite_rules, WP_Rewrite->rewrite_rules, WP_Rewrite-
   > >page_rewrite_rules, WP_Rewrite->page_uri_index )
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [new post hook](https://wordpress.org/support/topic/new-post-hook/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/new-post-hook/#post-1596806)
 * yea i know that didnt help me in the first time either..
    my quastion was how
   to check if the saved post was a new post or just an update to an exiting post…
 * I already found a way to check this…
    new post doesnt have any id set to it yet.
   so the code looks like that: `if($post->post_parent == 0 && $post->post_type 
   == 'post' && !$post->ID)`
 * i had to do some other check on deleted post either, because the “delete_post”
   hook run whenever a post data deleted… page or post or revision…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [new post hook](https://wordpress.org/support/topic/new-post-hook/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/new-post-hook/#post-1596801)
 * There is any way to hook to a new post creation?
    Anyone?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [new post hook](https://wordpress.org/support/topic/new-post-hook/)
 *  Thread Starter [stuk88](https://wordpress.org/support/users/stuk88/)
 * (@stuk88)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/new-post-hook/#post-1596775)
 * yup already checked there…
    i didnt able to find any “new_post” like, hook.

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

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