Allow visitors to search by multiple tags (specific IDs)

Solution 1) First, make sure you are using WordPress 4.3, which was just released, or this won’t work. 2) Second, drop the entire pre_get_posts hook, you won’t need it. WordPress will automatically filter the search archive based on the terms you’ve included in the querystring (this is the 4.3 functionality I just mentioned). 3) Next, … Read more

Display tags belonging to a specific post type only

I’ve been successfully using the following code from @StephenHarris from this answer. I have made a small tweak or two to the original code, but the most significant is to name the new count object to count_type from the original COUNT* that was returned by default Just in short again, the function works exactly like … Read more

Combining tags from post types

As John said in his comment, you have two taxonomies with separate terms. If both posts and portfolios are to share tags, instead of using a new taxonomy just extend post_tags to portfolio custom post type : register_taxonomy_for_object_type( ‘post_tag’, ‘portfolio’ );

How important are WordPress tags for SEO purposes?

From what I have gathered, Tags don’t directly affect your SEO ranking – keywords put you “on the map”, but really it’s your content and popularity that will increase your ranking. However, many people rave that tags (properly [not overly] done) have a great affect on flow through your website. Example: You write a FANTASTIC! … Read more

When switching from html to visual editor the tag gets erased

WordPress doesn’t save <p> tags. Paragraphs are displayed automatically in the TinyMCE visual editor and then the output gets <p> tags automatically (for better or for worse) from the wpautop function. I avoid using <p> tags. A double line break will automatically be converted to a paragraph at output.

How to allow user to perform search by more than one tag

Firstly, stop repurposing categories and tags, instead use custom taxonomies. This will give you: archives and listings URLs to view each taxonomy User interfaces that match the names I would personally have chosen a physician custom post type with specialty and location taxonomies. However I am assuming this is a way of filtering down posts … Read more

Display tags for current post in sidebar

You can use get_the_tag_list(), you just need to set the 4th argument, $id to get_queried_object_id() which gets the ID of the main queried post/page outside of the loop. You’ll want to check is_singlar() too though, in case the queried object is a tag/category with the same ID as a post: <?php if ( is_singular() ) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)