## Can you add a shortcode to a custom post type that gets the post_title, post_content, etc. and then passes that to a plugin function?

Question
Help! Cannot figure this out. I have built a plugin based on this tutorial that gives a user the ability to export a post from a custom post type into a formatted PDF using FPDF. As it stands, the PDF export ...
0
3 months 0 Answers 40 views

## get_post() is not returning correct value

Question
I have a post and i need to update its post_parent. So i have used following to update the post_parent value. Old post_parent is 844 and using query i have updated the value to 370 using below: ...
0
3 months 0 Answers 41 views

Question
I want to show a custom post type chosen from the meta box dropdown list but i am getting this error Notice: Trying to get property of non-object in C:xampphtdocswordpresswp-contentthemesaffiliatorfooter.php on line 20 Here is my code: $get_footer = get_post_meta( get_the_id(), 'af_choose_layout', ... 0 8 months 0 Answers 89 views ## Disable block from editor based on post type Question I've made a Gutenberg block which is only appropriate to show on hierarchical post types, so I want to disable it from the block inserter for non-hierarchical post types. I thought about how to achieve this in PHP, but the 0 8 months 0 Answers 157 views ## Custom field in PHP file Question im a beginner with PHP, so i hope that someone can help me solving this issue. I want to display the expiration date of a post with the following plugin https://wordpress.org/plugins/advanced-schedule-posts/ I've think i can use:$hasp_expire_date = get_post_meta( \$post_id, ...
0
1 year 0 Answers 72 views