I want to include a script in a shortcode output, so I am trying this: function my_shortcode( $atts, $content = null ) { extract(shortcode_atts(array( 'title' => '', ), $atts));...
I’m new to WordPress development and am seeing examples everywhere that have a line to declare the $post variable explicitly via: global $post; But I’ve tested my uses without...
I have a custom post type (speaker) and I would like to load the list of speakers sorted by last name. I can’t seem to figure it out. I...
I am using the function in my own class as I am using other wordpress functions in it. I am unable to understand why it is not able to...
What is a plugin lifetime within a deployed instance of WordPress? Namely: do plugins modify existing files or do they only use defined extension points within WordPress? are plugins...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question...
There are many scripts/hacks out there to insert ads into the middle of the post (after ‘x’ number of paragraphs), however I haven’t found a good enough script that...
Well, im making a wordpress web page for my dad, a psychiatrist, who barely knows how to check his email. He wants to put content regulary but the actual...
WP frontend output of custom textarea fields not respecting line breakes. In admin it’s OK. Right now I am using this: <?php $options = get_option('my_custom_plugin_options'); ?> <?php echo $options['my_custom_plugin_options_textarea'];...
I made a custom post type with taxonomies and when I go to the taxonomy page and view one of the taxonomies I get a page not found error...