Reading, searching and closing a file every time the page is loaded is highly time consuming. Database systems are highly optimized for reading and writing huge amount of records, querying data, providing schemes, relations between the data etc.
What will happen if 10K users hit the taxonomy page? How you will handle the updates of a taxonomy or the insertion of a new one in the file? How you can do efficiently queries regarding the value saved in the CSV file? What will happen if you delete the taxonomy or if the file has 1 million records?
The proper way is to save it in a database.
Related Posts:
- How do I export categories, site stats, comments and posts from wordpress to excel
- How to perform unit testing on proposed patches in Trac?
- Can the default “post tags” taxonomy be renamed?
- Custom columns for taxonomy list table
- Add ‘Description’ to taxonomy ‘Quick Edit’
- get a specific taxonomy term name
- get_terms() How many is TOO many?
- Child Terms not Displaying on the Taxonomy Term Admin Screen
- How to display child term of current term’s parent taxonomy?
- Sorting custom taxonomy causes menus error
- How to add terms to taxonomy with wp_insert_terms?
- Is there any difference between post in child term and child & parent terms?
- How to add automatically keyword to taxonomies when a post published, and assign them to the post
- Display Custom Taxonomy in Sidebar in Two Columns
- Create and move terms for taxonomies
- How can I remove links from the function “get term list”?
- Alphabetical order in taxonomy.php
- Get Term names from WP Term Object
- functions to create term and child terms
- base directories / URL
- Conditional tag affecting taxonomy term and its children?
- WordPress REST get all items without a taxonomy assigned
- Getting the parent from the wp_term_taxonomy
- How do I get the current tag out of a taxonomy?
- If search matches taxonomy
- Showing custom taxonomy column in taxonomy category listings immediately after create category
- Custom Field as Custom Taxonomy?
- Order wordpress taxonomy parent terms by their children count
- Plugin to assign parent category on multiple taxonomy terms
- how to show only last child terms of a taxonomy
- Modify the query method when adding category filtering function to the custom post list
- How to list taxonomy terms in reverse order?
- need to get postthumnails from a post whithin a category custom post type
- Group Post by Custom Taxonomy 2 under Custom Taxonomy 1
- Individual post. Meta_key, taxonomy or post status for separation?
- Ordering Taxonomies / Changing term_id
- Fetch and ACF image field from a custom taxonomy outside category/archive page? [closed]
- How to restrict users in edit post that can just select exists tags? not add new
- Changing the default taxonomy key length
- Adding taxonomy terms based on custom field
- Multi Taxonomies same terms
- Taxonomy Tag Conditionals
- UI for taxonomies & query vars
- Multi-select field for Taxonomy can’t save the value
- Exclude posts with taxonomy term from appearing on home page query
- Redirect to another page using contact form 7? [closed]
- What does ?cat=2-5-results mean at the end of URLs?
- Display a tag only if there is a description
- Query Custom Post Type by Taxonomy Meta Value
- Foreach inside foreach
- Advice on how to build multiple cross-tagged content types
- Return Taxonomy Name for Each Term
- Taxonomy list names with lowercase
- Test if taxonomy on current page has at least one term with more than one page tagged with that term
- Modify output of wp_dropdown_categories to add term IDs to each option
- Repeater + taxonomy: same value in every field
- How to display only the direct children of a term on a taxonomy page
- Get an array of custom taxonomy with posts inside each items
- Query Custom post type with Taxonomy Custom Field
- Display posts from tagchildren of taxonomy tagparents
- If has_term, load other theme
- archive page sidebar not working
- Tax Query trouble
- Bug using wp_insert_term with switch_to_blog
- Get something out from taxonomy
- get_term_by with a variable
- Change searching from world level to first letter
- Finding id of taxonomy by name in custom post type
- How to have article URL like example.com/article1 and example.com/foo/article2?
- Unique IDs for Post Types and Taxonomies
- How to display acf repeater in tag archive page?
- JS POST update data taxonomies
- Can’t display multiple terms with get_the_terms
- I want to edit the tags template by adding text that displays all tags from the listed posts
- echo a tax term in loop
- I need posts within a taxonomy category that are tagged “featured” to show up first
- How to manage the links of a new taxonomy
- How to position taxonomy meta box on page
- WP REST API taxonomy is missing on custom post type
- How to add some filter to Category Taxonomy
- Get taxonomy url, name, post count & image
- Rewrite permalink to include multiple taxonomies
- taxonomy terms are not populating select tag options
- Recent posts by taxonomy and filter by tag
- Related Posts by taxonomy using Advance Custom Fields Plugin
- Organize content by month? SQL statement?
- How to Display Child Taxonomy Posts
- Output Taxonomy Title as Part of Result
- Help me add Taxonomy to byline
- Filter custom taxonomy table
- Add a tag like a post
- How Can I List Categories by Date?
- Custom Taxonomy Page redirect 404
- Why is taxonmy-[taxonomyname].php not working?
- Taxonomy link not working (leads to 404 page)
- Adding Advanced Custom Fields to posts without hyperlinks
- Add URL field to wordpress taxonomy
- Using autocomplete with post_tag taxonomy on attachments
- Display taxonomy terms when adding a link in the admin
- Bulk import in custom taxonomy