it looks like you should use
$mypost = get_post($_POST['pid']);
$ogg = $mypost->post_title;
instead of
$ogg = get_post($post->ID, post_title);
Related Posts:
- What is the advantage of using wp_mail?
- wp_mail is undefined
- Fatal error: Call to undefined function wp_mail()
- wp_mail not recognizing cc and bcc headers
- Problem with `wp_mail()`
- Do I have to override the wp_mail() pluggable function with writing a plugin?
- How to send email in wordpress with more than one attachments
- wp_mail() headers multipart/alternative
- White screen when activating plugin that sends form via WordPress
- Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0
- Using wp_mail to send email?
- Count products with custom metadata field in an order
- Allow user to add the php code in wp_mail()
- wp_mail links are dead
- wp_mail_from not changing from address
- What’s the difference between term_id and term_taxonomy_id
- How do I programatically insert a new menu item?
- When would I use either function for plugins?
- Test to see if jQuery or Prototype is queued by another plugin?
- How to tell if an option has been created vs an empty option?
- jQuery in header or footer
- Notice: _usort_terms_by_ID is deprecated since version 4.7.0! Use wp_list_sort instead
- How to add a new plugin page under desired Options page?
- Plugin screenshots not showing in the repository
- How to make WordPress use non-greedy shortcode parsing?
- Multiple Parameters for a Shortcode
- How to get current page name in my wordpress plugin
- WP Cron doesn’t save or in post body
- Use register_taxonomy() in register_activation_hook()
- Pages 404 in wordpress
- How to properly load text domain of custom mu plugin
- Post from front-end with post types, categories and taxonomies
- product-attribute-slug-is-too-long-28-characters-max
- Multiple entries in get_option results? or why is _multiwidget set to 1?
- Check if I am in the Admin Panel (wp-admin)?
- Fully automated theme install and activation via a plugin
- Using Ajax call in jQuery doesn’t work in widget
- Why is WP_Mock not used instead of WP_UnitTestCase for writing unit tests by most plugins?
- Confusion on WP Nonce usage in my Plugin
- Metabox Not Showing on Custom Post Type But On Pages and Post
- Using Checkboxes on Plugin Options Page for Custom Plugin
- Add media and attach images to pages
- Create a Page via plugin
- Generating User(s) with Settings API
- How to redirect to action on custom page within admin section
- Show comments fields in two columns
- Processing shortcodes in groups (separated by line breaks)?
- How to convert this cURL to wp_remote_get?
- Including a JS source with an admin page
- Should action callbacks start with a verb?
- How insert negative values in Gutenberg box-control
- WordPress setting with select – where is my mistake?
- What filter should I use to insert a button inside on Media>Add New
- is user logged in not working
- Override class inside $atts shortcode_atts in WordPress
- How to use a hook to override an update_post_meta call in a plugin?
- External Authentication, session_tokens not destroyed on logout
- How to programmatically add a custom template that appears in Site Editor from a plugin?
- In woocommerce cart item we can add custom text but how can i add custom link? [closed]
- Is it possible to restrict all admin pages except theme customisation and storefront using plugin?
- Updating Woocommerce Settings API when WordPress Settings API saved and vise versa
- Build a translation correcter plugin
- Secure REST with nonce works only when not logged
- template_include filter does not render the custom template
- How to give a download link to a .csv file from the custom plugin?
- What’s wrong with this post__not_in argument?
- How to set a cookie for logged in users to md5($user->ID . “my_secret”)?
- WordPress plugin enqueue scripts working for js, but not css files
- First and last name fields not filled when using wp_insert_user
- my basic php code producing unexpected results
- Gutenberg – is it ok to load dependencies multiple times?
- get_plugins() is not give plugin list after performed delete_plugins()
- Best practice for Designing a Plugin with this scenario
- Overwriting a plugin function
- Referencing files in JavaScript in WordPress Plugin
- How do I debug an error that a plugin is causing?
- What could cause a WP Option to get truncated?
- Borrowing of Previously Translated Strings by Child Plugin
- How to output CSS to the beginning of the stylesheet in a WordPress Plugin
- Set page to draft on plugin deactivation
- Can one plugin activate another plugin via script?
- Insert and read media from the WordPress library and call in the plugin
- How to create dynamic content with get_post_meta?
- Enable a role named ‘backend_user’ to access my plugin pages
- Hiding class namespace from plugin’s extensions
- How to trigger WooCommerce user profile edit change?
- Return raw image proxy for wordpress plugin
- Stop unauthorised file access
- Changed media upload path for plugin, but generates error & shows wrong url
- How to pass a more variable with page/subpage in Wordprees URL?
- Use a page as a template for a custom post type
- Dynamic sidebar areas not working on the Theme Customizer
- Woo-commerce: Adding additional page sections using a child theme
- Plugin dev: How to multiply instances of a plugin in the same metabox?
- Merge Codes using redux framework
- How to get html tag ids from template?
- Getting Plugin to read all script files
- How to use get_pages( ) correctly with ‘child_of’ to replace page with child page
- How to Prove Ownership of plugin [closed]
- get_term_by() returning null on plugin