Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Site ‘Categories’: save an admin global setting with post metadata [closed]

Site Categories is only a tool for categorizing blogs and together with Sitewide Tags allows for copying sub-blog posts to a top level blog of a certain category and list out posts from certain blog categories. However, no categorizing data is copied with the posts, or linked to the posts via metadata – except the blogid.

We ended up writing a snippet in content.php that looks up the blogid of the post, and then looks up the name of the theme the blog uses from the wp_options tables in the WP database.

That let us style by category, since the blog of a certain category inherited the child theme for its category.

Related Posts:

  1. How to add category to: ‘wp-admin/post-new.php’?
  2. WordPress Multisite – Create Default Post and New Category On New Site Install
  3. How do I show posts from another wordpress installation?
  4. if in category but only with post meta
  5. Display post number by category
  6. Get post category as a separate string and url
  7. Post meta not working
  8. Re-order Category Meta-data
  9. How to display related posts from same category?
  10. How to show related posts by category
  11. How to allow hidden custom fields to be added from wp-admin/post.php?
  12. Display all posts from specific categories on a page
  13. How to disable Uncategorized category URL?
  14. Add role that restricts user to post in specific category
  15. Count posts in category including child categories
  16. Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX
  17. Edit meta data does’t work with custom sql
  18. Archived Posts in Wrong Category
  19. Display all posts under child sub category in sidebar on post page?
  20. How do I get the slug of a custom taxonomy category of a post?
  21. Featured Posts for Category Pages
  22. Authors in menu, template list post by author
  23. PHP Notice error (when on 404 page)
  24. Count to how many categories a post belongs to
  25. How can I remove posts of a certain category from homepage after a specified time period?
  26. Modify WP_Post before processing
  27. I would like to give special promotion for the first 100 posts in my blog? Can anyone tell me how to do that?
  28. Edit custom post type admin menu link
  29. Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
  30. How to display WordPress archive into three columns [closed]
  31. Get mixed category random posts
  32. Using wp_list_categories like the the_category (showing just current categories of a post)
  33. Should I use posts or pages in this scenario?
  34. How to allow users to post only in certain category and hide elements from edit page?
  35. Need help with category listing!
  36. Prepending %category% onto default posts fails
  37. List all categories with featured image from post?
  38. How can I hide tags on a child-category page, if that tag has not been used?
  39. How do I stop the loop from repeating in my category template?
  40. Is it possible to add/tick a category to a post when it is created?
  41. Hide posts belongs to few categories in homepage
  42. post category in wp_insert_post
  43. Customize rel=canonical tag for single blog post
  44. store posts_id of category into a varable?
  45. Display posts of specific category term
  46. Widget that shows categories with posts numbers
  47. Latest posts by category — how to exclude current post?
  48. Relative number of post in category
  49. Change post author without using wp_update_post()
  50. How to get post with associated categories and tags names instead of ids with rest api?
  51. Display a mixed list of posts and media
  52. wp_query with ajax
  53. Updating post meta for checkbox
  54. Automatic blog page with custom design [closed]
  55. Remove Featured Image from posts in specific category?
  56. Sidebar limiting to 10 posts?
  57. How to list post as buch of category, and all of them
  58. How can I add a page that shows posts from a single category?
  59. Post in bulk based on category template
  60. Remove subcategory slug from url
  61. Can I show category name in url for only one of my categories?
  62. Automatic duplicate/copy of post to a related page in WordPress
  63. Is there a way to categorize a list posts all at once?
  64. Yoast breadcrumb URL shows category instead of the page
  65. On the online version of my blog posts disappear
  66. Current post categories and subcatecories outside of the loop
  67. Query prints posts without specific categories
  68. Private post caught in endless redirect loop
  69. Foreach issue in get_posts function
  70. Display Updated Date Instead of Published Date
  71. How do you update post date (year only) in a separate custom field?
  72. Bulk Post update_post_meta
  73. More Than 50K Categories and WordPress Admin Panel Stop Showing Categories and Posts
  74. Populate a drop down list with post titles across a multisite network
  75. Custom post styling per category?
  76. post categories – how to show only categories with a specific parent id
  77. Creating a “category” of featured posts
  78. How do I make it so that new posts within a certain category go into a certain page?
  79. alt of attached image in post / pages
  80. List Authors For Current Category
  81. List posts of assigned categories in list of all categories on single.php
  82. Add custom class to existing menu items from custom meta
  83. Assign specific ads to specific categories/posts
  84. find posts with exactly 3/4 categories
  85. Users cannot post when editor or admin on more than 1 site on multisite
  86. Use radio buttons & checkboxes for post categories
  87. Displaying only posts from a certain category on my custom page template
  88. WP_Query: Fetch posts that are in (category1 and not in category2), OR posts that are not in cagegory1
  89. making a few sites in wordpress
  90. Add default content to post (for specific category)
  91. List posts that are in the same category as the current post title
  92. Multiple blog “feeds” in a single blog each with distinctly styled post pages
  93. How to get pagination working with “Pending” Posts
  94. Post’s arent displaying
  95. Show with echo if a post has two or more categories
  96. How can I get on the same row two post of different categories?
  97. How to get a list of all posts and their categories?
  98. Show posts assigned to multiple categories in current category page
  99. How to display related posts from the same category?
  100. Mismatch between posts count and actual list in admin posts page
Categories posts Tags categories, multisite, post-meta, posts
WP-DBManager Plugin Can’t Find Mysql Path
Add tags to long page that is broken up into subpages?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress