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. Unable to create categories and tags for posts in wordpress multisite
  10. How to display content from the main blog on another from multisite network as it would be its own
  11. Force the “Choose from the most used tags” meta box section to always be expanded
  12. How to allow users to post only in certain category and hide elements from edit page?
  13. Meta value does not save for scheduled posts
  14. Custom Posts Query and meta_query Sort Order
  15. Multisite: Can’t Post or Create Categories
  16. How can i limit the number of posts created per category?
  17. How to Restrict Previous & Next Post Link to Posts of Same Category?
  18. Pulling in post category and children within category
  19. WordPress custom Query for Posts in Category display posts multiple times
  20. Post categories to pages
  21. Get user categories with most posts in it
  22. Unable to restore from backup – how to obtain old blog posts?
  23. Post page to display specific category
  24. Get Posts Under Custom Taxonomy
  25. Get attachments for posts that belongs to a specific category
  26. Prevent additional top level categories but allow more children
  27. Need help with category listing!
  28. Prepending %category% onto default posts fails
  29. List all categories with featured image from post?
  30. Pagination with an array of post objects?
  31. How to compare two posts including their meta fields on a scalable base?
  32. Categories list into registration form
  33. Getting value from get_post_custom
  34. WP_Query: Mixing category__in and tag__in together
  35. If in_category not working for multiple single.php pages
  36. Calling Different Custom Post Timestamps in a table
  37. How can I setup a relationship using categories in WordPress?
  38. how to show single post in a custom template
  39. Using ajax on editing a category edit page?
  40. Is it possible to paste a link without tags and make it directly a link in a post?
  41. Related posts by category not working right
  42. How to list recent posts in a wp nav menu?
  43. Set static page/post from another blog on same network
  44. Set Default Category to Username
  45. Disable sticky option for specific categories
  46. Dynamic dependent Dropdown lists for categories, sub-categories and posts
  47. How can I hide tags on a child-category page, if that tag has not been used?
  48. date issue with category post retrival
  49. Cannot retrieve a custom RSS field from posts
  50. Listing Specific Categories from Current Post with Depth
  51. How to make multiple sections in home pulling posts category wise?
  52. How to display two blog categories as separate sections on one page?
  53. Saving custom fields to a custom taxonomy
  54. How to make the first post in the loop be styled like a “new / featured” post?
  55. How to Mysql select a list of posts with meta_values AND all relevant categories?
  56. Redirect to another page using contact form 7? [closed]
  57. Display post category in foreach loop
  58. Single.php – Get Current Parent Category
  59. How do I stop the loop from repeating in my category template?
  60. get_the_category listing in hierarchial order
  61. How to automate featured posts number? [duplicate]
  62. Is it possible to add/tick a category to a post when it is created?
  63. Excluding posts not working
  64. Hide posts belongs to few categories in homepage
  65. why does wordpress ignore the post args?
  66. post category in wp_insert_post
  67. Limit the number of posts a category can have – newest post goes in, oldest one drops out, possible? plugin?
  68. How to WP_Query() from multiple blogs and order them?
  69. How to get subcategories from category slug?
  70. Remove current category from post but display all others
  71. How show categories in admin and get that selected to show posts in index
  72. Customize rel=canonical tag for single blog post
  73. Change all author links in Blog roll
  74. How to I retrieve the ID from the Posts page?
  75. How to save meta checkbox WordPress
  76. Showing categories and subcategories with posts
  77. Change default category when I publish a post
  78. store posts_id of category into a varable?
  79. Is it possible to filter the main loop to exclude posts from a specific category?
  80. How to display two random-post sections that are each under their own category
  81. How can you display all sibling categories to a post?
  82. How to calculate the average of a post meta value(Numeric) of a specific author
  83. Loop doesn’t exclude the specified category in home page
  84. Is there any way to tell when wp_postmeta has been updated?
  85. Display posts of specific category term
  86. Widget that shows categories with posts numbers
  87. How to create a sub post?
  88. Post Image not displaying in category view
  89. wpColorPicker – problem with implementation to post meta
  90. get posts from Custom Post Type & Category
  91. Category page when using static front page
  92. Latest posts by category — how to exclude current post?
  93. Display password protected posts to logged in users
  94. How do I include the category next to the title of a post?
  95. Relative number of post in category
  96. How to create a “latest news” page showing a list of posts from blog category
  97. WordPress bulk category select when publishing post
  98. Exclude some categories from listing on the current post
  99. How to show a custom taxonomy in the theme?
  100. How to import nested categories from XML file?
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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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