Skip to content

Tag: wordpress

WordPress strip single shortcode from posts

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 f…

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 …

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=xxx…

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:

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…