Showing the category hierarchy as clicked in WordPress, with image and desc
Showing the category hierarchy as clicked in WordPress, with image and desc
Showing the category hierarchy as clicked in WordPress, with image and desc
Ok. That is a good observation. How should i make the adjustment then. Let me know what needs to be done about it to correct how to make it select category?
Show parent category wp_list_categories wordpress
i need to have a tab with gategory post
What I would suggest in this situation is that you create a “CUSTOM QUERY” to query the posts. Set this custom query into a page, then use Appearance > Menu’s to add the page into your menu structure. I hope this helps.
You need to use wp_list_categories() (Codex ref), using the child_of argument. Assuming you know the ID of the “Podcasts” category, e.g. 123: wp_list_categories( array( ‘child_of’ => ‘123’ ) ); If you need to find the category ID, use get_category_by_slug (Codex ref): $cat = get_category_by_slug( ‘podcasts’ ); $catid = $cat->ID; wp_list_categories( array( ‘child_of’ => $catid ) … Read more
From you are describing, it might be worth investigating custom-post types. You can actually create a separate menu tab on the left column – ergo separate your posts accordingly in a similar layout as Posts. http://codex.wordpress.org/Post_Types
I would guess link_catetory should be link_category. 🙂
wp_insert_link() allows you to set the category in the $linkdata args. <?php $linkdata = array( “link_id” => 0, // integer, if updating, the ID of the existing link “link_url” => ”, // varchar, the URL the link points to “link_name” => ”, // varchar, the title of the link “link_image” => ”, // varchar, a … Read more
You need to echo your link: <a href=”https://wordpress.stackexchange.com/questions/54801/<?php echo esc_url( get_category_link(“23′) ); ?>”> <?php echo get_the_category_by_id(23); ?> </a>