Use double percent sign like so: %%special-purpose%%
.
Or you could also use a placeholder, i.e. LIKE %s
and then set the 6th parameter for $wpdb->prepare()
to %special-purpose%
, i.e.
$wpdb->prepare( "your SQL query", $earth_radius, $lat, $lng, $lat, '%special-purpose%' )
Related Posts:
- Return $post_id when DOING_AUTOSAVE?
- Including Angle Brackets In Pre Sections
- Anchor Text code string is automatically modified by WordPress
- WordPress is converting & to & inbetween [code] brackets
- Notice: Undefined property: wpdb::$current_post What can be wrong?
- Where to save common libraries?
- source code: WP_INSTALLING vs. WP_SETUP_CONFIG in setup-config.php
- Sublime Video: Playlist which gets all attached videos
- Code Friendly Block Quotes
- Remove line breaks from ?
- How to fix a “globals” issue to avoid a rejected theme?
- Need resource on available functions and objects
- WordPress wp_insert_post() returns 0 but not not wp_error
- I want to remove the home page header image from all other pages
- Proper implementation/use of code/syntax highlighting
- How to remove all comments from JS, HTML, CSS files?
- What data validation we must use in different contexts?
- Need To Post Unformated Code
- Sidebar login: How do I get the username to show after “Welcome”?
- How to manage multiple wordpress project with shared code base
- Block IP Addresses using Code [closed]
- Find Total Authors
- Why does HTML entities are still encoded in Code Block?
- How to create a checkbox to show/hide a field in WooCommerce checkout [closed]
- how to display google maps with javascript
- How to pass https://achecker.ca/ validator? [closed]
- How to write custom code on WordPress?
- Remove Metaboxes
- Google analytics won’t work in wordpress
- Where do I add an action hook & callback in my theme?
- How do I reset my footer.php to its original state? (theme: Origami)
- Commenting out in HTML editor breaks template
- Adding code to send referrer on login page
- Table styles disappear when updating content
- Manage recurring event time
- wp_editor save all content
- Need an elegant solution to declare the value of two variables based on the count of the post
- How to insert integration code for CRM?
- A good way to include snippets of code in both posts, pages and Event Manager Template files?
- Anchor Text code string is automatically modified by WordPress
- Return $post_id when DOING_AUTOSAVE?
- Changes in code only show after changing theme
- Code Highlighting in BlockQuote
- feed url problem
- Where do I go to add a tag before the closing body tag?
- Best collection of code for your .htaccess file [closed]
- How to get a variable number of posts per post type on the main loop?
- Create custom [sourcecode] shortcode, the right way?
- how to group custom post types
- How do i structure my theme folder to avoid one huge list of files
- Editing Source Code in WordPress
- API integration with WordPress
- write in functions.php
- Pinterest Integration Using functions.php
- Successful or Error Message after running mysql code in functions.php
- Beautify WordPress HTML output without any plugins
- Date/time limitation of posts where function must be executed
- How to implement Google reCaptcha without installing a plugin?
- Connect Second Database to WordPress
- If in category to be inside of a function
- Hide wordpress field if data is empty in post!
- code suddenly appearing from my tempate second loop
- Latest post in a specific menu
- How to add an automatic refresh in WordPress for a Page/Post or an embedded OneDrive/Excel HTML Code?
- WordPress change Language not working
- What is this code in my theme’s footer.php causing chmod permission warnings? [closed]
- How can this crude function be improved?
- How to run a function in every page, every device
- Can I do in-page changes binding events/triggers to actions in WordPress?
- Make order notes field at woocommerce checkout only viewable on front end by Admin level user role [closed]
- Fatal error: Uncaught Error: Call to undefined function get_header() [closed]
- Search Count WordPress Theme
- WP List Pages – Add Title Attributes to Anchors
- Line breaks changing to when switching between HTML and Visual tab!
- Allow tags between shortcode in comments
- Counting number of posts in multiple (sub)categories using shortcode
- Need help for some PHP code
- Save Meta when custom Taxonomy Saves
- using add_filter in a template_redirect function?
- restrain filter on get_the_excerpt to queried item in stead of current post
- WP search box on page not finding .PDF files
- WordPress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!
- How can I use javascript in specific posts without relying on a plugin?
- How to add specific posts to specific pages in WordPress?
- Code for cron to delete posts that contain specific expression (e.g. “unable to fetch” every 30 minutes
- Website Tablet Check Out Field Issue
- style.min.css code issue
- how to run a php code in widget?
- Pull ‘Popular Posts’ within specific timeframe
- widget that will do shortcodes that user inputs
- How to add a class name to the ancestor of a post?
- Themes with variable width or single columns? I want to display source code
- Creating a press page for our project
- Website Developer has gone missing! How to gain full access of your code from a WordPress website?
- How do I upload my WordPress code files from previous website onto local host WordPress website?
- Text before price on WooCom
- What’s wrong in the WordPress Meta Box Generator code?
- May I know where to edit the tax rate?
- How to add links to different language versions of WordPress
- how to create twitter card without plugin in wordpress website?