I want to strip just the shortcodes in my blog posts. The only solution I found is a filter that I added to my functions. It removes all shortcodes including which I need for images. How can I specify a single shortcode to exclude or include? Answer To remove only the gallery shortcode , register a callback function that returns
Tag: wordpress
Using Environment variables in WordPress wp-config
I’m using phpfog.com for hosting and github.com for issue tracking, etc. I have two remotes setup, one to phpfog.com, and the other to github. In the back-end admin of phpfog you can define …
How to debug save_post actions in WordPress?
I have some custom post meta being generated and am ready to add to a post’s meta. I know how to do this. However, save_post causes a redirection after POST data has been sent. This means I am redirected to the dashboard and lose access to my POST data – therefore I cannot debug easily. Currently I am using something
Contact form 7 post to .asp
Is it possible to post the form contents of Contact Form 7 form fields to an awaiting .asp page? My form has four input fields and one hidden field. Name, Telephone, Email, HowFoundUs, Refer. I want to post those input values to the following .asp page: clientsite.com/default.asp?name=xxxxxx&telephone=xxxxxxxx&howfoundus=xxxxxx&email=xxxxx&refer=xxxxxxx I have been searching through the plugin files and have yet to find
Remove Category Base from WordPress Category URL
I fished around the internet for a solution to this, tried a plugin or two to remove the /category/ from wordpress url’s. While some of these plugins are good, the category link still display’s /…
How do I display a wordpress page content?
I know this is really simple but it just isn’t coming to me for some reason and google isn’t helping me today. I want to output the pages content, how do I do that? I thought it was this: Answer @Marc B Thanks for the comment. Helped me discover this:
PHP Namespace 5.3 and WordPress Widget
I am using namespaces. I try to create a WordPress widget (http://codex.wordpress.org/Widgets_API) With namespaces the following gives an error because the arguments can not be passed (and without …
Problem return a function inside of a shortcode in WordPress
I have some trouble coding a themes shortcode. I want the code to display a div with a view counter function, and then a link with the shotcodes content as the url. The view_count(); function works fine when called inside theme files, and I actually managed to make it show, but then it displayed before the_content(); of the post (the
Paginate WordPress $wpdb Query?
I have this query: I’m using this because Wordpress can’t properly order meta_values that uses numbers, anyway…everything works fine except I have no clue on how to paginate this using wp_pagenavi. Any idea? Answer Although I wouldn’t recommend it, you could try changing the properties of the global $wp_query object. You can look up the definition of the WP_Query class
How to pass extra variables in URL with WordPress
I am having trouble trying to pass an extra variable in the url to my WordPress installation. For example /news?c=123 For some reason, it works only on the website root www.example.com?c=123 but it …