Importing large number of RSS feeds

Problem solved by changing to InnoDB as storage engine for mySQL and using the following settings: CACHES AND LIMITS tmp-table-size = 128M max-heap-table-size = 128M query-cache-type = 1 query-cache-size = 128M max-connections = 500 thread-cache-size = 35 open-files-limit = 65535 table-definition-cache = 4096 table-open-cache = 4096 INNODB innodb-flush-method = O_DIRECT innodb-log-files-in-group = 2 innodb-log-file-size = … Read more

WordPress menus – automatically generate

Use the WP database (via proper methods) to store a ‘is this the first run’ flag? Then just conditionally execute. check for flag in wp db if exist do nothing if not exist create me my menus dag nammit remember to set flag for next round so its only done once Something like that? If … Read more

Auto-Tagging a Custom Post Type

Referenced from https://codex.wordpress.org/Post_Status_Transitions#.7Bstatus.7D_.7Bpost_type.7D_Hook the hook named “{status}_{post_type} Hook”. This hooks is fired, when custom post type “community” is giving the status “publish” = is published. Hook will give post_id and post object as parameters to the callback function. And wp_set_post_terms, requires first parameter as post ID. This should work: add_action(‘publish_community’, ‘community_post_type_tagging’, 10, 2); function community_post_type_tagging($post_id, … Read more