How to distinguish pages created by woocommerce?

You can use conditional tags or function wc_get_page_id(‘page_name’), where page_name can be: ‘myaccount‘, ‘shop‘, ‘cart‘, ‘checkout‘, etc. For example: Using is_cart() you can check whether the current page is a cart page. Using wc_get_page_id( ‘cart’ ); you will receive ID of cart page. Which way is more suitable for your code you have to decide … Read more

Posts not showing content after migration

As suggested by Jos the reason for this was that the post_name column in the wp_posts table was empty. To correct the said problem, the following steps were taken: Backup the database. Check for duplicates in the database. select * from (select count(*) as c, post_title from wp_posts where post_name=”” and post_type=”post”) as counts where … Read more

Create/Set Category as Title of Post

Can’t give you fish, but I can try you to teach how to fish with a couple of pointers; hook into publish_post (good example code there) and / or post_updated in the function that is called that way, use wp_create_category (which will only create if the cat. name doesn’t exist yet) and with the cat … Read more