Try this:
function h5b_ajax_get_user_drinks() { return get_template_part( 'drinks' ); exit; }
Related Posts:
- Get post title with link
- get the_title_attribute by id
- How to get full content including template HTML
- get_posts post title permalink not working for last item in array
- How to Custom Edit Post Title & Permalink Slug?
- Permalinks causing wp-json to 405
- In a multisite, how can I get posts from one site and display their permalinks in another site?
- Include other parameters in permalinks for better management of browser history
- Leverage permalinks with AJAX
- get_posts displaying wrong permalink for “continue reading” link
- Getting the Posts’ permalinks from XLMRPC
- Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”
- How does WordPress handle permalinks?
- Get page permalink without wpurl
- Can I use REST-API on plain permalink format?
- How to change ‘with_front” key from an existing custom post type?
- permastruct for custom post type not working in one of four cases
- Deleted Page Still In WordPress Database
- Is there a way to regenerate page permalinks without a plugin?
- How to Remove Slug From Database?
- Slash is being stripped in my post_name when using wp_insert_post
- Non-Latin Characters in permalinks
- Custom Rewrite with Query vars
- Change link to other post to shortlink in the editor
- Change the custom post type permalink
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Using only %postname%
- Change permalink only on new posts
- How to replace “wp-content/blogs.dir” with “media” for attachment permalinks?
- After moving from subdirectory to home, home page does not display
- Specific URL Rewriting with parameters in wordpress
- Can two products with the same name but different category produce unique URLs?
- If the only permalink setting is %postname% what happens in the case of old duplicates?
- Get closest page ID from URL
- How to modify the slug for the default wp posts without affecting other posttypes?
- How to create thousands of endpoints for a post or a page or a custom post type programatically?
- AWS WordPress Install – pages/posts 404 on restart until updating permalinks
- WordPress get permalink function
- Site moved to HTTPS and loads as HTTPS but permalinks show as http
- Exclude / Blacklist Permalinks
- Point domain to different webhost’s subdirectory wordpress
- 404 Error Problems with sCategory Permalink plugin
- Default setting permalink /blog/
- Need help getting my Permalink structure right
- Redirect Uploads Folder to Query Vars in WordPress
- how to link post-thumbnail to original img in a lightbox?
- Losing preview ability: W3 Total Cache + Post name permalinks
- Get the url of a page template without using the page slug and ID
- flush_rewrite_rules breaks permalinks
- How to show permalink auto when type text in post tiltle?
- Accessing Subdirectories in WordPress Install
- Permalink for custom post type
- How to change “attachment_id” in attachment permarlink?
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- Custom permalinks in WordPress
- Permalink opens attachment instead of page
- How can I say if a URL is a post, page, or taxonomy archive?
- Changing WordPress routing to load the same page for different URLs
- Custom post type clean shortlink
- cannot link a external url, present page url acting as parent url
- add_rewrite_rule on default post type
- the_content(); erroneously closing off previous opening before it
- Bulk append URL (add word to slug)
- Conditional Permalink based on category?
- Permalink Custom Page Template
- permalink error when modifying sanitize_title_with_dashes function
- The requested URL was not found on this server [closed]
- Shortcodes not working
- WordPress permalink not working on subdomain
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- Extending page urls without getting a 404
- Permalink conflict with React Router in subfolder
- Add /blog prefix for all WordPress front end url
- Permalink structure has suddenly changed
- How to experiment with permalink structure on a select number of posts
- Why does page for hierarchical taxonomy parent term go 404?
- Custom permalink gives 404 error only in some pages
- Bulk update set of URLs via SQL
- Custom permalink for one category
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- Choose permalink on a per-post basis?
- Single.php not loading when permalink only contains date information
- WooCommerce product permalink changed
- How to put articles under a /blog directory?
- Different Permastruck Between Ajax Request & Normal Request
- Imported posts using wrong domain name
- Is there a way to add slug to home_url on this function?
- Problem with multiple tags in URL
- Customized author slugs not working with get_author_posts_url method
- Custom WP permalink structure
- 404 error on second page load for child-pages
- Permalink structure as code in back-end?
- Internal Server Error every time I push up my WordPress Project to Heroku
- region selection
- Redirecting From An Old Permalink Structure
- WordPress custom permalinks, pages are now 404
- Include language variable in url
- Is it posible to translate a url prefix?
- Page permalinks are http but show up as https?
- Standard Htaccess directives disappear by themselves