Category pages consequences
-
If I were to add category pages to my nav bar so that I could post to multiple sections, what are the consequences? Would I have a hard time transferring fiels to my main domain?
-
From what I understand you want to create multiple categories for your posts, so that you can create separate pages for each of these categories? Also, it seems that you are working form a dev domain (or locally) and you will be transferring these to your main domain?
For the transferring, it won’t be any more difficult than transferring your site as you would normally do so. As for the consequences, I don’t see any, or maybe i don’t fully understand the situation. But from what I understand, you have two solutions based on how you manage your navigation bar:
1- static nav bar (you set its items manually and point them manually to your pages)
You can get wordpress to generate you a permalink to point to your category listing (or page) and have these pages templated using category-{slug or id}.php. This is the solution i’ve used in the past.2- dynamic nav bar (dynamically grows when you add pages)
Not sure how to inject items to a dynamic menu (since I think it’s 100% generated by wordpress), but I would create a page in your wordpress for each category listing and in your template file use the get_posts() to extract the correct category value.Let me know if this is what you’re looking for or if I’m way off base.
I downloaded wordpress via softaculous. So I am basically able to do just about everything I want before customization from URL/wp/wp-admin.
I have created category pages and added them to my nav bar. So, I will be adding different content for each category page. This is easy.
I am just worried that when I change the site URL from URL/wp to URL I will have trouble because I am using category pages instead of pages. Is this a problem?
Should be fine with this?
Yeah with this you should be fine:
update_option('siteurl','http://example.com'); update_option('home','http://example.com');It won’t matter that you’re using category pages, they are retrieving data from your database, so if your page can’t connect to your database after migrating, you have bigger problems to resolve.
Should it be connecting to the same database right now though? Or is it using wordpress resourceS?
It is currently using my domain URL since it came off of softaculous. So should the transition be as easy as:
update_option(‘siteurl’,’http://example.com’);
update_option(‘home’,’http://example.com’);Are you talking about transfering your site to a totally new domain or are you simply migrating it to a new directory (such as example.com/dir to example.com?)
If you’re keeping the same domain and simply moving the files to a new directory (or to the root) then yes it will be connecting to the same database (the settings in your wp-config.php won’t change) and yes it should (if i understand correctly) be as easy as updating the two options.
Those two options tell your site where you home is situated (for your home page templating) and also what is the base directory of your website (so that it knows where to point to files and such relative to the siteurl)
New directory. Thanks!
One last question, will using the wp-admin still be available? Will that URL change?
It’s url will change from example.com/directory/wp-admin to example.com/wp-admin. It’s not managed the same way as your pages would be wordpress. wp-admin is actually a directory in the wordpress structure so since you’re migrating the wordpress directory, the url to this interface will be migrated accordingly aswell.
Cheers.
Awesome, thanks for all the help.
The topic ‘Category pages consequences’ is closed to new replies.