{"id":6597,"date":"2017-04-26T12:41:09","date_gmt":"2017-04-26T19:41:09","guid":{"rendered":"http:\/\/www.yuleshow.com\/?p=6597"},"modified":"2017-04-26T12:41:09","modified_gmt":"2017-04-26T19:41:09","slug":"how-to-make-the-category-list-only-one-titles","status":"publish","type":"post","link":"https:\/\/yuleshow-ajgzf5fhf8cdegck.westus-01.azurewebsites.net\/?p=6597","title":{"rendered":"How to make the category list only one titles?"},"content":{"rendered":"<p>In my blog, some category has hundreds titles, almost all the themes will show all the details in the category index. Which makes my category page become really huge, it looks like list the contents of several books just in page, I need change it to only list the titles.<br \/>\nSome themes use the only content\/list loop for both main index and category list, those themes is useless for me, once you modify the category list, it also affects main index. \u00a0I need the category list which is separate.<br \/>\nThose themes has the category.php matches my requirement. \u00a0Here is the way how to modify\u00a0it:<\/p>\n<ol>\n<li>Look for the code like<br \/>\n<code>while ( have_posts() ) : the_post();<\/code><\/li>\n<li>Find the code in the loop like<br \/>\n<code>get_template_part( 'content', get_post_format() );<\/code><br \/>\nand comment it<\/li>\n<li>Add the following code<br \/>\n<code>?&gt;<br \/>\n&lt;a href=\"&lt;?php the_permalink(); ?&gt;\" title=\"&lt;?php the_title_attribute(); ?&gt;\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;br \/&gt;<br \/>\n&lt;?php<br \/>\n<\/code><\/li>\n<li>List can be added to the code<br \/>\nyou can do some modifications, like change the &lt;br \/&gt; to &lt;li&gt;&lt;\/li&gt; pair, and put &lt;ol&gt; before the while loop as well as &lt;\/ol&gt; afterwards<\/li>\n<li style=\"list-style-type: none\"><\/li>\n<\/ol>\n<p><audio controls=\"controls\"><\/audio><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my blog, some category has hundreds titles, almost all the themes will show all the details in the category index. Which makes my category page become really huge, it looks like list the contents of several books just in page, I need change it to only list the titles. Some themes use the only [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[54,55],"tags":[],"class_list":["post-6597","post","type-post","status-publish","format-standard","hentry","category-website-management","category-wordpress-website-management"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yuleshow-ajgzf5fhf8cdegck.westus-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/posts\/6597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yuleshow-ajgzf5fhf8cdegck.westus-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuleshow-ajgzf5fhf8cdegck.westus-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuleshow-ajgzf5fhf8cdegck.westus-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yuleshow-ajgzf5fhf8cdegck.westus-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6597"}],"version-history":[{"count":0,"href":"https:\/\/yuleshow-ajgzf5fhf8cdegck.westus-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/posts\/6597\/revisions"}],"wp:attachment":[{"href":"https:\/\/yuleshow-ajgzf5fhf8cdegck.westus-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuleshow-ajgzf5fhf8cdegck.westus-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuleshow-ajgzf5fhf8cdegck.westus-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}