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?
- Remove links to the comments section
- Unable to display multiple parameters from url by javascript through shortcodes
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- Allow two posts (from different categories) to have the same slug
- Prepend to all image URLs with PHP, only for mobile devices
- 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
- Get nice name of category from slug (remove dashes of category)
- Products listing check if meta checkbox is checked
- Trying to update Woocommerce meta values
- how can i redirect dynamic URL in worpress base on ID in htaccess or wp-config or function.php
- Is it possible to update the dataset using update_post_meta
- How to update custom fields when post is published?
- Block error message in foreach loop when looping through ACF field
- Hide a div if the fiels is empty
- Setting up a cron job to auto update a custom field
- How to Call on WordPress Custom Fields without a Plugin
- Add Link to PHP message
- Inserting a class on before_widget if checkbox is checked
- Query on a repeater date (acf)
- How to enable HTML tags in category description without breaking the category page
- Current WordPress Page Title as Search Parameter into A Tag
- 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?
- ACF – Can’t get custom post type by taxonomy
- What is the correct way to search 3 custom fields only in WordPress?
- opens like sitename.com/URL
- Link to index.php from home.php?
- Get WordPress username to customize url
- wp_get_nav_menu_items() with ACF
- Save custom field on WP_List_Table
- Sum All the Post Meta of Published posts of Current Logged in user
- How do I get the value of a current user’s custom field?
- WordPress/NGINX not respecting the category URL for new posts
- How does one make a URL return dynamic JSON with custom Content Type?
- Trying to retrieve meta values from three different meta keys and display in rows
- Display child-page links in sidebar on both Parent Pages AND Child Pages
- Meta inserted through wp_insert_post gets messed up
- WP post meta – for loop inside for loop
- Require advice handling a URL redirect from a Third Party. URL Params need to populate and then forward to payment
- custom fields anchor points php
- Store custom field’s multiple values in one user meta key
- Get field in readable word
- WooCommerce multiple custom fields code
- When working with a post, almost all wp_postmeta are deleted
- WordPress add_rewrite_rule
- Need to Echo A Url path to show on a wordpress page
- What is the proper way to call a function (from functions.php) on a link click?
- What syntax is this? “{{post.price}}”
- Updating Lat and Lng of posts automatically gives sporadic results
- Change username link in admin bar
- How to display custom field from a gallery thumbnail?
- WP_query meta_query slow with OR and DATES
- I want url from a file in media using title file
- Get meta_query value by user meta array
- How to use something like meta_query but for fields?
- Multisite – Display different header content based on which site is accessed
- How do I generate formatted permalinks as specified in backend options?
- Getting a value from a custom field from a page that shares a parent with the current page
- Passing parameter from the current URL to redirect to another url
- meta field for numerous links
- Wrapping shortcode content in a span or link
- how to remove replicating a tag inside loop?
- Previewing/Updating some Pages causes “The requested URL was rejected” Error
- Custom fields changes the formatting of metabox input
- Include a custom field in mysql query
- Links in footer section
- Display Content Based on Custom Field Value
- Create a dynamic buddupress tab
- 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
- problem with category menu, it doesn’t want to show link
- extract url from a hyperlinked string in PHP [closed]
- divide custom field values in div every two values
- custom field meta-box with dropdown/autocomplete
- Showing custom field contents without listing description
- How to exclude post from being queried based on custom meta value
- Make first child link default instead of its parent
- Removing all my hardcoded URLs with get_site_url()
- If custom field doesn’t exist, or exists and it’s true show title?
- Retrieve first image url from custom post with pagination
- Custom field in title
- If Elseif Query
- How can I put a custom field as the link of a button shortcode?
- Outputting a custom field in PHP
- Magento and WordPress URL integration [closed]
- Sorting Meta Fields?
- Custom fields randomly stop working
- Display selected parts from selected pages on the frontpage?
- Where can I find the code for the menu page meta boxes?
- Passing multiple variables through url (php)
- How to echo a different field if another field is empty?
- How to remove parent section in an attachment URL in wordpress?
- Get current WordPress page then add #post ID to the end