I suspect the issue is that $recipe_url is undefined in the portion you’re trying to echo it. Can you post a link to the full code of recipe_options.php? Use pastebin or something.
Try:
href="https://wordpress.stackexchange.com/questions/114230/<?php
$recipe_detail_xml = get_post_meta($post->ID,"recipe_detail_xml', true);
$cp_recipe_xml = new DOMDocument ();
$cp_recipe_xml->loadXML ( $recipe_detail_xml );
$recipe_url = find_xml_value($cp_recipe_xml->documentElement,'recipe_url');
echo $recipe_url ;
?>"
Related Posts:
- changing static link to relative link
- How to link a word comprised of a custom field with another?
- Add a class to links in the visual editor (how to get old dialog back)
- How to display multiple Post meta_key/meta_values by SQL query
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to make an meta_query optional?
- How to use multiple query with same meta key
- How to loop over custom fields in a page template?
- How can update custom meta for all posts
- Unique key for each row in a repeater field
- Concatenate site_url and string doesn’t work
- Filter link to existing content suggestion
- Removing WordPress profile fields from non-admins
- Callback URL in WordPress
- Use ajax to update_post_meta
- Wrong links in WordPress?
- How is WordPress manipulating the posts like there are folders?
- Show custom field if it exists, and show different elements if it doesn’t
- Extract subdomain and relative address from a url
- How to properly insert a link to a template in WordPress?
- tracking number field in Woocommerce order [closed]
- How can I create a list of page titles from custom meta values?
- WordPress – Display array data of a child
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- Adding number to date not working [closed]
- Saving and Restoring a Canvas on A Individual User Basis
- How to use thumbnail size of image if I’m only using src to get image
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- Search Query: how to construct a search string from two select elements?
- Trying to retrieve post meta
- Need help enqueueing webfonts
- Redirect to another page using contact form 7? [closed]
- Custom Field IF/ELSE PHP
- Advanced Custom Fields – display label and value only if value entered
- Is it possible to retrieve all posts with a certain value for metadata?
- How to check if the current page is at a specified path in the URL?
- How to get post permalink url without a href
- Why are the details of my todo not saving?
- Can’t save php string to a custom field
- Run str_replace on title and save the output to a custom field
- Next post link on a bootstrap button
- if custom field doesn’t exist, use post thumbnail instead, as image background
- How to store multiple custom meta box
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- I’m unable to call img path using single quotes in an array?
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- Automatically Add Page Links to Nav Menu
- How to add data to a custom field at the wp_users table?
- Can’t change website Title on wordpress
- How to use title attributes in sidebar widget?
- Define category ID using get_post_meta
- Including Custom fields within the_content
- How can i make a search box to search by custom field
- Comparing Dates from custom field
- How to add PHP pagination to wordpress
- the_meta – no get_the_meta query?
- Display movies that apear this day next
- Display Custom Field in Sidebar if Value is Present
- Using a string from a custom field within a link
- Make separate text boxes for separate WordPress Custom Fields
- WordPress permalink issue
- Delete images from media library when user deletes an image from ACF Gallery
- Obfuscate links (for SEO purpose) [closed]
- Display custom field value in woocommerce variable product via jQurey
- Include custom fields in search
- update_term_meta() only updating once on certain meta keys
- Rewrite rule not working, but only when parameter is text
- Generating 3 random numbers and saving them in database
- Where does php code to load data go?
- Sum All the Post Meta of Published posts of Current Logged in user
- Display child-page links in sidebar on both Parent Pages AND Child Pages
- WordPress add_rewrite_rule
- What is the proper way to call a function (from functions.php) on a link click?
- What syntax is this? “{{post.price}}”
- Change username link in admin bar
- How to use something like meta_query but for fields?
- How do I generate formatted permalinks as specified in backend options?
- how to remove replicating a tag inside loop?
- Previewing/Updating some Pages causes “The requested URL was rejected” Error
- How to change this internal image link parameter using PHP?
- php if, else & custom fields – syntax error
- How to get the first letter from custom field?
- Meta box not saving spaces
- extract url from a hyperlinked string in PHP [closed]
- Retrieve first image url from custom post with pagination
- If Elseif Query
- Sorting Meta Fields?
- Display selected parts from selected pages on the frontpage?
- How to echo a different field if another field is empty?
- Get current WordPress page then add #post ID to the end
- PHP Puzzle: Unique Styles with PHP loop
- How to include support for all page types, calendar urls, archive, etc
- Too many if’s and else if’s ?? – Must be better way [closed]
- WP query with variables gives no result for specific user
- bloginfo url in javascript
- How to extract URLs from wordpress taxonomies
- Remove content links (internal and external), but exclude post at specific categories
- Convert custom field date format to “WordPress default”
- How to execute a shortcode within a custom field?