New answers tagged

1 vote
Accepted

Count post with tags within one category?

Yes it is possible to count the posts with certain tags within a particular category. You can achieve this by using a combination of wp functions like WP_Query to retrieve posts and get_terms to ...
vijay pancholi's user avatar
1 vote

Stop Wordpress removing <script> tags when switching from HTML to Visual (TinyMCE)

as of 2024 you can allow unfiltered html in the wp-config.php by setting DISALLOW_UNFILTERED_HTML to false like this: define( 'DISALLOW_UNFILTERED_HTML', false ); Regarding security stuff: Enabling ...
Nils Tessier's user avatar
1 vote
Accepted

How to run this plugin every time a post is saved?

After the advice from every awesome person who helped, I finally got it to work. I just had to define $the_content instead of trying to use the hook get_the_content() alone. Now it's tagging ...
Cody King's user avatar
0 votes

How to run this plugin every time a post is saved?

As per my comment, I suspect what's happening is that you have your $keywords array outside the function. So when the function runs the foreach() it has nothing to iterate through, so does nothing. ...
Tony Djukic's user avatar
  • 2,008
0 votes

Unable to get all tags from specific categories

you're trying to concatenate the tag lists for all posts into a single string, which may not be the best approach and issue with how you are retrieving and concatenating the tags within your loop. <...
vijay pancholi's user avatar
0 votes
Accepted

Search for portfolio tags & mixing portfoliotags and post tags

I put my answer to help others who can face the same issue. Thank you to all of the people who help me out to find the solution and valuable comments from this post. Please see my answer
made leod's user avatar
0 votes
Accepted

search filter for search and tag page doesn't work

For those who face the same issue, I post my solution that seems to work (I am keeping my fingers crossed that I still need to test to see if everything is running well). I found the solution thanks ...
made leod's user avatar

Top 50 recent answers are included