Your ampersand is getting encoded, try:
get_page_by_title( html_entity_decode( $title ) );
Related Posts:
- How to paginate wordpress [gallery] shortcode?
- What kind of object type is WP_Query?
- Last post ordered by publish date using WP_Query on front page
- Shortcode returns escaped HTML tags
- WP_Query in a shortcode
- Can certain (site-crashing) limitations on WP_Query in shortcode be overcome?
- How to retrieve current page WP_Query arguments?
- wp_query add arguments using array_push if variable met
- Category attribute not working in custom shortcode
- How to get all child pages in their parent page?
- Database Queries Optimization with new WP_Query
- Orderby is working with one query but not with other
- Shortcode for latest -not expired- posts
- Gallery shortcode numerical sorting
- How to filter a query by date in a shortcode?
- How should I approach changing the template & $query as part of a shortcode’s execution?
- Shortcode Not Working in Slider When Added To Post Title
- Shortcode for custom query not returning results when attributes are added
- How to Display Shortcode in the correct location, currently displaying before content after Page Title?
- WP_query only displays one of my custom post type entries
- Assign a minimum result count for WooCommerce query shortcodes?
- Using a Shortcode to List Posts from Multiple Categories
- embedding shortcodes in php template
- How to get specific string in explode array?
- Trouble passing attribute into shortcode function
- Woocommerce Shortcode which displays a table with product data
- WP Query by 4 different taxonomies
- create custom shortcode wp and put php code in
- How to display a post(by id) along with css in a page?
- Shortcode attributes causes 500 error after updating the page
- pages shortcode filtering by category
- WP_Query & shortcode : Return 3 articles from a category WordPress
- Query by Category and Custom Field – Shortcode
- How to take parameters from a function and make them editable as attributes in a shortcode
- How to modify WP Query to target the first most recent post to adjust content
- Object of class WP_Query could not be converted to int inside shortcode
- How can I create another instance of my custom shortcode
- Get Current CPT taxonomy category in shortcode
- Custom shortcode not displaying categories and correct date
- return wp query results in a shortcode
- More efficient query to display posts in same sub-category?
- Having Trouble Running Query From Shortcode Using Tribe’s Events Plugin
- shortcode using multiple WP_Query’s with multiple category names not fully functional
- Shortcode does not display pagination [duplicate]
- How to write a query-function as a query-shortcode?
- shortcode with $atts with strange results
- WP_query shortcode inside acf Repeater breaks the repeater loop
- How to prevent WP query searching in executed shortcodes
- How to create a three column blog layout with a single query and with three different classes?
- Pagination with custom SQL query
- How to list some posts first in the loop based on post id
- Add indexing to meta_value in wp_postmeta
- get images attached to post
- get data from wp-query, outside the loop & without url change
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- How to use WP_Query to filter posts modified after a specific date
- WP_Query or get_posts?
- How to display the number of articles published per user
- How do you query wordpress posts using a math formula between multiple meta field values?
- Ordering Posts Type A by Custom Fields of related Post Type B
- Query Posts depends on custom field inside repeater field using acf
- Custom category search box for WordPress
- Sub-loop / nested loops Best Practices
- Query all published post AND attachment with specific mime type
- WP_Query returns random number of posts
- Load More Posts Button – AJAX
- How to list custom fields as headers and list all pages sharing that custom field under it?
- Best practice for query_posts in responsive design?
- why does not my wp_query work?
- How to access custom WordPress database tables
- Exclude current post from an array of posts?
- How to set an alternate posts_per_page value for default queries in different templates
- Wp-query Order By problem
- WP_QUERY with group by with custom fields
- Loading two different AJAX requests on two different pages
- Query posts using less than
- How to add WordPress featured image via SQL
- Using WHERE on a WP_Query
- Insert images into wordpress post with a query
- Query post ordered by meta value that show first post that contained a tag
- WordPress Ajax form filter | Search by title with ajax form, breaks the other filters
- Query posts by post type, author and post meta
- pre_user_query vs pre_get_posts
- Can I alter the main loop to ‘orderby’ a custom callback?
- How can I filter products by meta in Woocommerce REST API?
- Query a database based on form input then output to another page [closed]
- Query for getting posts with their custom fields data in WordPress
- WP_Query not returning any posts
- WooCommerce | AJAX | Product Pagination | Help me implement Ajax Pagination
- How to delete a complete forum topic from root folder in wordpress
- meta_query is not allowing to show posts when querying multiple arguments in a WP_Query
- WordPress Bootstrap Grid
- WP_Query within save_post doesn’t include the item that triggered the action?
- Search format not matching taxonomy query
- Pagination doesn’t work for home page custom post type query
- How to display comments list by order when clicking on newest or oldest link?
- Get the number of rows from $wpdb->get_results not working
- Loop issues when creating custom query for media uploader
- have_posts order by title descending
- How to handle wp_query?