Post tags show outside loop?

I’m trying to use tags of the single post, as meta keywords. I tried using this: <meta name=”keywords” content=”<?php the_tags(”,’,’,”);?>test<?php }?>”/> It works, but the output is: <meta name=”keywords” content=”<a href=”http://127.0.0.1/1/tag/aquaman/” rel=”tag”>aquaman</a>,<a href=”http://127.0.0.1/1/tag/batman/” rel=”tag”>batman</a>,<a href=”http://127.0.0.1/1/tag/wonder-woman/” rel=”tag”>wonder woman</a>”/> Is it possible to remove the tags link/URL? And just the text/tag itself will appear? 2 Answers 2 … Read more

Getting alt text of featured image

I’m trying to get the alt text of our featured image and have it output on the frontend. Currently my code is <img class=”vehicle-photo” src=”https://wordpress.stackexchange.com/questions/312283/<?php echo the_post_thumbnail_url() ?>” alt=”<?php the_post_thumbnail_caption();?>” /> But on the frontend, it is outputting as <img class=”vehicle-photo” src=”https://wordpress.stackexchange.com/questions/312283/photo url here” alt=””> 2 Answers 2 The alt text is stored as post … Read more

How to remove these comments and html tags from the content?

These are actually input fields. paragraph is the textarea field. i query the contents from database and try to show them in this textarea field. But the textarea field is showing me unwanted comments and tags. When I echo them outtside the textarea field, it is fine. My code…. <?php while($userNotes->have_posts()): $userNotes->the_post(); ?> <li> <input … Read more

Showing all tags in admin -> edit post

Someone knows how to show ‘all tags’ insteads of the ‘most used tags’ in edit post of administration panel? This should give the ability to select with a single click tags that are not yet used! Here is a screenshot of what I mean: screenshot Thank you very much. Ok, I’ve resolved in this manner: … Read more

Search doesn’t find tags or categories in custom post types

I’ve added tags and categories to a custom post, but the search bar doesn’t find them when I use it. It does find the ‘uncategorized’ category (default category) that’s inherent in wordpress though. The Categories I’ve entered show up in the sidebar, as well as w/the custom post type (as do the tags I’ve entered). … Read more

Category vs Tag vs Table

I have a site that will hold roughly 1000 posts/articles from an in-house magazine dealing with Australian naval history. The articles cover a range of subjects (such as Aviation, Intelligence, Ship Histories, Personal Histories and the like) and I’ve created categories to suit. The names of ships in an article is very important for research … Read more

Is it possible to generate an alternate structure for multi-tag urls?

I know that one can query multiple tags with the + syntax, as in www.example.com?tag=?test+test2+test3 I’m looking for a solution where the URL would be in this format instead: www.example.com/foo/test/test2/test3 Can anyone give any tips how best to arrive at this solution? 1 Answer 1 You might be able to pull something together using: http://codex.wordpress.org/Rewrite_API/add_rewrite_rule … Read more