Quantcast
Channel: fetch_feed(custom field url) printing out the url rather then using it | WordPress.org
Viewing all articles
Browse latest Browse all 18

danazz09 on "fetch_feed(custom field url) printing out the url rather then using it"

$
0
0

Alchymyth thanks a lot. That has resolved my issue!

At the same time though, it has now brought up another one. While I can now use 1 single php page as a template and grab the custom fields to dynamically change the parameters, I think I still need a separate php file for each page indicating what page to look for the information on. This is the code I mean:

<?php
				$page_id = 1384; //ID of page from your WP admin panel
				$page_data = get_page( $page_id ); 

				echo $page_data->post_content; // Show page content
				$url = get_post_meta($page_id, 'address', true);

	?>

I can't just say $page_id = get_page)($page_id); can I, it will not know where to look for a particular page will it.

By the way I am new to Wordpress and have just been learning off tutorials and forums.


Viewing all articles
Browse latest Browse all 18

Trending Articles