Can I use the following code for my question.
<?php $args = array('taxonomy' => 'blogcategory'); ?>
<?php $tax_menu_items = get_categories( $args );
foreach ( $tax_menu_items as $tax_menu_item ):?>
<a href="https://wordpress.stackexchange.com/questions/143389/<?php echo get_term_link($tax_menu_item,$tax_menu_item->taxonomy); ?>">
<?php echo $tax_menu_item->name; ?>
</a>
<?php endforeach; ?>
I found it from here
Updated: I found the answer I was looking for
<?php
$taxonomy = 'blogcategory';
$tax_terms = get_terms($taxonomy);
?>
<ul>
<?php
foreach ($tax_terms as $tax_term) {
echo '<li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $tax_term->name ) . '" ' . '>' . $tax_term->name.'</a></li>';
}
?>
</ul>
Related Posts:
- Can you have a blog in a subdirectory hosted on a different server?
- 404 Error On Category and Tags Pages
- Move WordPress from /blog folder to root but leave post at /blog
- Moving my current wordpress blog to a subdomain
- Block multiple categories from Blog
- Looking to exclude blog posts from category Previous/Next buttons
- Could not load the preview image. Please reload the page and try again – error on image upload
- How to display blog posts on a dedicated page?
- Two Blog Layouts, Same Theme
- Show first sentence of blog post in blog roll
- Keep WYSIWYG on Blog Page
- If newest post of category is newest post in general, skip first post of category
- Detect archive and category page
- Custom URL for all posts in WordPress
- A garbled copy of MY blog on this site? [closed]
- How to create button to direct to certain category
- A different thumbnail to the blog index vs. the image on the top of a post?
- Deleting a blog
- WordPress Genesis not excluding category from blog
- Why does this snippet in a blog post make WordPress crash?
- How to move all theme templates into a subfolder WP
- Where can I find my blog page?
- How to display the posts and news in front page?
- How do I change the taglines next to the featured image on my posts?
- Different post styles depending on category
- Putting a Category of posts under a Page
- WordPress Blog – Grid View
- How to show latest blog post rather then earliest
- how to “not” display new posts with a specific category on the main page?
- Single.php – Get Current Parent Category
- inviting people to blog and editing roles
- Removing blog page images
- problem with wordpress author profile page URL
- How to make blog posts appear under different menu items?
- Portfolio & Blog cohabitation : multiple single.php files?
- Functions.php: Exclude Category from “Blog”
- How can I display tags as categories?
- How to add list of other blogs, with latest posts from those blogs, to a single page of my website?
- Put post urls into their own category
- I want to display my 2. latest post
- Why the Gutenberg Editor is Not Available In My WP Site?
- How to prevent WordPress from auto creating ol li on list elements?
- Display content from a specific category using cat ID not working
- How do I add a sign up form to my blog?
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- WordPress blog assign unqiue body class
- I am getting “0” in the starting of my post description at home page
- Display subcategories in dropdown
- Exclude post category in a blog page
- Hide a category of posts from main blog, and only show in category view
- Add code to header based on category for specific posts?
- How can I make my Blog category unindexed in Google?
- Use blog as base for tags and categories
- Recent Posts Listed by Author, Can I exclude authors?
- How to modify display of blog listing page?
- Restrict CSS on one page
- Internal and External Blog
- Rebuilding a Site: How to Show Several Category Posts in Woo Framework Theme?
- Can I make a parent page of the blog and have it display a paragraph/thumbnail of certain entries?
- How can I set a vote on the comments?
- excude a specidic category from showing in the “relative posts”
- Category post count is not correct
- Making a column vector in wordpress blog using Latex
- How do you allow users to subscribe to a WordPress blog?
- Blog on a separate server from WooCommerce WITHOUT effecting SEO?
- How to create category filter on a blog like on the site below?
- what is the address of default home page?
- How can I create a ‘sub-blog’ which has its own sidebar on individual posts?
- Blog page with posts from specific categories
- Is it possible to set up blog categories without changing permalink structure
- Creating new page overwrites old page
- How to set condition for all posts with one label
- Blogs got Deleted automatically
- Integrate wordpress blog into existing html site
- Redirect Category pages to blog page with query string
- Get posts from category from custom query
- Retrieve details of my wordpress site
- Blog post stuck in drafts
- I need to customize wordpress “previous” “next” links
- I Have No List Of Blogs – Empty Blog Folder Recreating Itself
- Read More showing only on first post
- How to change the layout of blog posts to that a compressed snippet shows rather than full text
- Can I create mini-WordPresses on my WordPress?
- How to create library of HTML snippets to use in posts
- Edit Posts Page but not category specific pages?
- Adding a WordPress Blog to a current WordPress site
- Two blogs one page
- List post categories that link to a page showing those posts
- Blog Displays Only Sticky Posts
- Uploading a external squeeze page within WP
- Posts page drop down is not selecting the selected page
- URL of blog when using index.php as blog and front-page.php as homepage
- Pages, Categories, and working with someone else’s code
- Not showing up on WordPress Reader
- Blog as a part of a WordPress site?
- Fatal error: require() [function.require]: Failed opening required in wordpress
- Multiple Categories under one URL, where ‘Front Page’ is used already
- how to show content of latest blog post with read more link?
- Restricting certain blog posts by date?
- Auto-posting Facebook posts to blog [closed]