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

WordPress Post Visibility Options for Frontend

One option is to use Ajax. I wrote this tutorial on how to use Ajax with WordPress and if you follow those steps, you’ll get the general idea. Of course, you’ll have to write some HTML to display the radio buttons, and then in your Ajax Callback function, you’ll want to change the post status to private or publish depending on the user’s response.

Related Posts:

  1. Update Multiple Post Meta for the Same Post In One call?
  2. Comparisson between date() and a date from wp_postmeta
  3. Show the “ratingValue” and “ratingCount” values ​of KK Star Ratings Plugin
  4. Updating post meta for custom post types
  5. How can I add a custom meta value on file upload?
  6. How to get custom field image url of specific size
  7. How do I add advanced custom fields / meta fields to Elasticsearch? [closed]
  8. Set attached to state
  9. How to change ID of an attachment in wp_posts and its related tables correctly?
  10. Add multiple attributes to product from php
  11. Make the checkbox meta field checked by default
  12. Where to hook my plugin’s action
  13. Is there a filter for get_post_custom()?
  14. dynamically generating plugin syntax
  15. Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
  16. Create digital-virtual-downloadable WooCommerce products from the frontend using Gravity Forms? [closed]
  17. What is generating my meta og:description?
  18. Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
  19. How to display the “ratingValue” and “ratingCount” values ​generated by the KK Star Ratings plugin into my page’s recipe ld+json schema
  20. get current date + 90 days and checking every day
  21. How can I change the meta_key for a particular piece of information?
  22. Bulk update all posts from plugin settings screen
  23. Meta box losing its value when scheduled post is published
  24. How to insert multiple postmeta values with one query?
  25. Mass SQL WordPress Meta Key deletion
  26. Date format – Meta Box plugin
  27. get meta value from database by post id
  28. How to remove bulk actions from custom post type
  29. Adding custom meta boxes to specified custom post type
  30. How to select a paragraph other than the 1st to be the post’s excerpt?
  31. Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
  32. How can I concatenate variables to search results title? [closed]
  33. Remember the Meta Value With Radio Buttons
  34. Link Posts to External URL
  35. Why does “updated_post_meta” did not fire when uploading media other than image?
  36. What snippet do I need to type to show my ACF field show up on my theme?
  37. Is there a way to make [Table Of Content] plugin while not using revision data?
  38. Help to Create a Simple Plugin to make a post
  39. get_post_meta shortcode returns empty field
  40. Add an action based on custom post meta field
  41. how to auto random increment for post view
  42. How to securely controlling data without keeping it in postmeta?
  43. “Enable Media Replace” plugin does not update serialized object in WPMeta
  44. Custom Field used to allow a Free Story; no longer works
  45. Performance considerations – postmeta table versus new table for custom posts with foreign keys?
  46. Get and Update Most Meta Value as an array in HTML form
  47. How to create meta fields with more than 1 relation?
  48. Get value from an input field and pass into update_meta_data as $meta_value
  49. How to get post that has non zero or greater than zero meta value
  50. Delete postmeta when uninstall/delete plugin
  51. Same Title on two different post type with single custom taxonomy
  52. How can I make my plugin display custom post meta data on the front end?
  53. Storing values in Post Meta vs new tables
  54. Add meta tags with a plugin?
  55. WordPress User Frontend Editing Custom Fields
  56. wordpress last all added get meta value by post id
  57. Get post id in Post Page within Wp-admin
  58. Output plugin post like system count [closed]
  59. getting image alt text via ACF plugin in WordPress [closed]
  60. Update post meta Rest Api
  61. how to add meta for order in woocommerce
  62. How to disable Yoast meta description for all pages
  63. Force post update with React
  64. How to pass the API key to the client from the database? [closed]
  65. Access a particular field in an array
  66. Notice: Uninitialized string offset: 0 in social sharing mu-plugin
  67. Override plugin styles via my custom theme
  68. Using ACF default value to autoincrement a number field
  69. Elementor: How to override global theme style settings? [closed]
  70. How to deploy gutenberg on my own [closed]
  71. Render Modula Plugin Shortcode On Ajax Request
  72. WPDB: Update table
  73. Shortcode to update user meta
  74. Add user role to generated plugin
  75. How to add CSS via custom plugin?
  76. Is there a way to get plugins and themes not built for multisite to work on a network subsite?
  77. }catch (ex){} showing in header [closed]
  78. How to prevent additional code in functions.php to be removed once there is an update?
  79. How to add custom table style for table block in gutenberg editor
  80. Update a core option from plugin settings page
  81. WordPress error: Options page Setting_ not found in the allowed options list
  82. Completely disabling password reset/recovery
  83. a href adds default URL with the given echo URL
  84. Why is my custom post type not being activated on plug-in activation?
  85. Disabling Wp_is_mobile from backend?
  86. One file for all translations
  87. Gutenberg Block Style CSS Class Is Not Applying on Backend
  88. Send admin an email when a user’s search has no results
  89. Plugins fail to update: Download failed. A valid URL was not provided
  90. How to check if my wordpress websiste is nulled or not?
  91. Plugin settings won’t save changes
  92. How to Loop Through all Posts and Count Attachments using Get Media Attachments
  93. What is the right way to show reusable content
  94. URLs Added to ACF Repeater Field are not working
  95. WordPress Users authentication with Java Application
  96. How do I automatically generate pages from a database?
  97. custom post type don’t appear in the home page
  98. How to add apply_filter for a class property in plugin
  99. What is a rock solid development and deployment workflow? [closed]
  100. What is wordpress way to access a plugin’s classes/models to load custom post type data?
Categories plugins Tags plugins, post-meta
How to echo text in browser instead of download junk file?
How Yoast SEO plugin works with variable %%name%%?

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