- This topic has 11 replies, 2 voices, and was last updated 2 years, 4 months ago by David.
-
AuthorPosts
-
November 30, 2021 at 4:41 am #2031171roy
Hello, I’ve attached an image to explain what I’m looking for as well. To give you more information, I’ve created a custom category post (I can’t add categories to pages so I made a post instead, unfortunately).
1. I want to remove the bar at the top, I also have disabled the content title already so unsure why it’s like that.
2. I need to remove the date/author at the top as well but only for this specific page. I’m also going to be doing this multiple times so if you can let me know how I could go about doing it myself after this that would be great!
3. I also need to remove the category folders at the bottom as wellThank you for all of your help!
November 30, 2021 at 5:31 am #2031236DavidStaffCustomer SupportHi there,
would it be simpler to use a page?
If so you can use theregister_taxonomy_for_object_type
function:https://developer.wordpress.org/reference/functions/register_taxonomy_for_object_type/
November 30, 2021 at 8:47 am #2031816royYes, would fix all the issues. I’m sorry but how would I go about entering in this code? Thanks David 🙂
November 30, 2021 at 8:55 am #2031833DavidStaffCustomer SupportThe snippet provided here will enable the default Category taxonomy on pages:
https://developer.wordpress.org/reference/functions/register_taxonomy_for_object_type/#comment-2608
And this article explains how to add that code:
November 30, 2021 at 10:35 pm #2032715royOk, so I did that and it seems that this code will not allow for the URL to be like this /cooling/central-ac
it’s imperative that I get it like that so I can do a redirect so it acts as the category page. Any idea how to move forward from here?
December 1, 2021 at 4:10 am #2033042DavidStaffCustomer SupportJust rolling back a bit – will the Categories serve any other purpose ? If you simply want a hierarchical structure then with pages you:
a) Create a Parent Page. eg.
cooling
b) Create a child page of that parent, eg.air conditioning
That provides the relationship and the permalink structure.
If Categories are a requirement then you will need top use Posts and we can look at the easiest way to strip the meta.
December 1, 2021 at 4:25 am #2033077royYes, the thing with the categories is I’ll be putting the posts within the page with WP show posts after that so they need to all be categorized through WordPress. Let me know how we can approach this, thank you.
December 1, 2021 at 4:41 am #2033097royACtually, wait on this, your solution may be correct.
December 1, 2021 at 4:47 am #2033103roySo looks like I don’t even have the option to utilize the parent/child attribution, even when I go to “Screen Options” at the top the box isn’t there. Sorry about all the trouble, let me know what you think would work moving forward
December 1, 2021 at 5:09 am #2033131DavidStaffCustomer SupportYou should see the Page Attributes meta box in the sidebar when editing a Page.
December 1, 2021 at 5:32 am #2033152royGot it fixed!! Thank you so much David!!
December 1, 2021 at 7:02 am #2033253DavidStaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.