How to insert integration code for CRM?

Option 1 Create a custom template for your landing page: /** * Template Name: My landing page * */ and add the code manually as you would add to a static site. Option 2 Create a custom field for your code on the landing page and output the meta content in the template created above. … Read more

How can I save cookies to members

You can can read the cookie and check if the current user is logged in using get_current_user_id(). If they are just save the cookie value to the user_meta. $cookie_name=””; if( isset( $_COOKIE[$cookie_name] ) ) { $user_id = get_current_user_id(); if( $user_id ) { $meta_key = $cookie_name; $meta_value = $_COOKIE[$cookie_name]; update_user_meta( $user_id, $meta_key, $meta_value ); } }

Show content by using tags

in case someone else in searching for this, I used a WP Query with the statement tag: $args = array (myargs1,….,myargsn); for ($i=0; $i<count($args);$i++){ $query = new WP_Query( array( ‘tag’ => $args[$i] ) ); …and so on with if have_posts() and a while loop, you can find the whole syntax on wordpress.org, only thing i … Read more

How to find and replace (or add) specific word in a specific category?

Just found the solution after a long time of trying- UPDATE wp_posts p JOIN wp_term_relationships r ON r.object_id = p.id JOIN wp_terms t ON r.term_taxonomy_id = t.term_id JOIN wp_term_taxonomy x ON r.term_taxonomy_id = x.term_taxonomy_id SET p.post_content = CASE WHEN t.name=”ACategory” THEN REPLACE(post_content, ‘http://sitename.com/FileID/filename.zip’, ‘http://sitename.com/FileID/ACategory-filename.zip’) WHEN t.name=”BCategory” THEN REPLACE(post_content, ‘http://sitename.com/FileID/filename.zip’, ‘http://sitename.com/FileID/BCategory-filename.zip’) ELSE post_content END WHERE x.taxonomy … Read more

How to create a new blog in wordpress?

WordPress can be used as a single install or as once blog where you create posts for that blog. Or you can set it up as a multisite installation where you can have a network of blogs. In a network of blogs, each site (blog) can have it’s own theme or plugins. Follow these instructions … Read more