Title: 101Phil's Replies | WordPress.org

---

# 101Phil

  [  ](https://wordpress.org/support/users/101phil/)

 *   [Profile](https://wordpress.org/support/users/101phil/)
 *   [Topics Started](https://wordpress.org/support/users/101phil/topics/)
 *   [Replies Created](https://wordpress.org/support/users/101phil/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/101phil/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/101phil/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/101phil/engagements/)
 *   [Favorites](https://wordpress.org/support/users/101phil/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/101phil/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/101phil/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Coming Soon Page & Maintenance Mode] Google (G4) analytics code](https://wordpress.org/support/topic/google-g4-analytics-code/)
 *  Thread Starter [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/google-g4-analytics-code/#post-17441205)
 * This is resolved.. After making the change to the Plugin as suggested, I had 
   to re-enter the Analytics code and Save..
   It will be good to have this fixed 
   in any new plugin updates so I don’t lose my changes.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Directing different posts to different pages 2012 theme](https://wordpress.org/support/topic/directing-different-posts-to-different-pages-2012-theme/)
 *  [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/directing-different-posts-to-different-pages-2012-theme/#post-3975582)
 * So you want a different layout for your homepage, then your pages underneath?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Make my website public](https://wordpress.org/support/topic/make-my-website-public/)
 *  [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/make-my-website-public/#post-3970188)
 * Excellent glad I could help…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Make my website public](https://wordpress.org/support/topic/make-my-website-public/)
 *  [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/make-my-website-public/#post-3970180)
 * Looking at your plugin list, I would be checking out the configuration options
   for
    Members
 * Unlikely its the Gravity forms..
 * Disable Members and check your site.. See if it views as expected.. If yes, then
   you need to configure the plugin correctly. Im not 100% familiar with the plugin,
   though understand the requirement.
 * If your site still shows the login screen, then I suggest turning off all Plugins.
   and Checking the site. Hopefully it displays as expected, ie no login screen.
   Then its a matter of turning them back on to find the culprit. My guess is 90%
   its misconfiguration within Members.
 * Hope it helps.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Make my website public](https://wordpress.org/support/topic/make-my-website-public/)
 *  [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/make-my-website-public/#post-3970173)
 * Unlikely to be Akismet…
 * Second Patricks’ comment.. What plugins do you have installed? It may be worthwhile
   disabling all plugins, just to see if they is the issue.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Make my website public](https://wordpress.org/support/topic/make-my-website-public/)
 *  [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/make-my-website-public/#post-3970172)
 * Its a strange one that I haven’t seen before,
 * Login as Admin and checkout the following section:
    In Settings > Reading. What
   is the selected option for Front Page Displays? If its pointing to a page or 
   post, is that password protected?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Site has crashed can not log in](https://wordpress.org/support/topic/site-has-crashed-can-not-log-in/)
 *  [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/site-has-crashed-can-not-log-in/#post-3972942)
 * By the looks of it I would guess there is an issue with your theme files. I would
   suggest resetting back to the default theme. Do you have access to any SQL tools?
 * Run the following SQL query:
    UPDATE wp_options SET option_value=’default’ WHERE
   option_name=’template’ OR option_name=’stylesheet’ LIMIT 2;
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Get pages list with custom fields](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/)
 *  Thread Starter [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/#post-2927392)
 * Hi Jon,
 * Yeah thats the approach I took, I went back to my original select statement and
   voila it worked. I will go back to review why the get_pages approach didn’t work,
   everything looked right from the advice I got here and over at StackOverflow,
   so its got me wondering thats for sure..
 * Thanks for you help…
 *     ```
       function the_partners($cpLevel) {
       	global $wpdb;
   
       	 $querydetails = "
       	   SELECT wposts.*
       	   FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta
       	   WHERE wposts.ID = wpostmeta.post_id
       	   AND wpostmeta.meta_key = 'Partner_Level'
       	   AND wpostmeta.meta_value = '$cpLevel'
       	   AND wposts.post_status = 'publish'
       	   AND wposts.post_type = 'page'
   
       	   ORDER BY wposts.post_title ASC
       	 "; 
   
       	$pageposts = $wpdb->get_results($querydetails, OBJECT);
   
       	echo "<ul class=\"logobox clearfix\">";
       			foreach ( $pageposts as $page ) {
       					$option = '<li>';
       					$option .= '<a href="' . get_page_link( $page->ID ) . '">' . get_the_post_thumbnail( $page->ID ) . '</a>';
       					$option .= '</li>';
       					echo $option;
       			}
       	echo "</ul>";
       }
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Get pages list with custom fields](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/)
 *  Thread Starter [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/#post-2927381)
 * Hi Jon,
 * It is truly returning no results.. Im not erroring at all…
 * Hmm strange one
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Get pages list with custom fields](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/)
 *  Thread Starter [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/#post-2927371)
 * thanks Jon, I will take a look later this afternoon, Im onsite at the moment 
   and I don’t have access to my Git repo to clone a version to this computer.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Get pages list with custom fields](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/)
 *  Thread Starter [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/#post-2927362)
 * No that doesn’t seem to do it,,
 * If I change the function to use get_posts() in place of get_pages, I get all 
   the posts in the install.. So it seems that my query is not working..
 * $pages = get_posts($args);
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Get pages list with custom fields](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/)
 *  Thread Starter [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/#post-2927360)
 * Ps I have removed the ) after the ‘meta_value’ => ‘Gold’ ), in my commented out
   query, saved tested and this didn’t do it either.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Get pages list with custom fields](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/)
 *  Thread Starter [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-pages-list-with-custom-fields/#post-2927359)
 * Thanks mate,
 * When I use that statement Im not returning any results… See function here.
 *     ```
       function the_partners02() {
       	 // $args = array(
       	 // 		 	 		'meta_query' => array(
       	 // 		 	 			       array(
       	 // 		 	 			        'meta_key' => 'Partner_Level',
       	 // 		 	 			        'meta_value' => 'Gold' ),
       	 // 		 	 					'post_type' => 'page',
       	 // 		 	 					'post_status' => 'publish' ));
       	 // 		 	 			$pages = get_pages( $args );
   
       	$args = array(
       		'meta_key ' => 'Partner_Level',
       		'meta_value' => 'Gold',
       		'post_type' => 'page',
       		'post_status' => 'publish'
       		);
   
       	$pages = get_pages( $args );
       foreach ( $pages as $page ) {
       			  	$option = '<option value="' . get_page_link( $page->ID ) . '">';
       				$option .= $page->post_title;
       				$option .= '</option>';
       				echo $option;
       		 	  }
   
       }
       ```
   
 * _[Moderator Note: Please post code or markup snippets between backticks or use
   the code button. As it stands, your code may now have been permanently dmaged/
   corrupted by the forum’s parser.]_
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [can I run a PHP file from a wordpress page or post?](https://wordpress.org/support/topic/can-i-run-a-php-file-from-a-wordpress-page-or-post/)
 *  [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/can-i-run-a-php-file-from-a-wordpress-page-or-post/#post-2927355)
 * Nice one Jonradio,
    I think I’ll use that suggested plugin too, next time round.
   or use your suggestion and go the short code route. Ps I have a post on here 
   I’m stuck with, if you don’t mind I will PM you for some advice.
 * Keep us posted on your project Ed. Also if you dont have time/expertise, you 
   could look at Freelancer.com (or insert other site here) as a way of getting 
   the functionality built.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [can I run a PHP file from a wordpress page or post?](https://wordpress.org/support/topic/can-i-run-a-php-file-from-a-wordpress-page-or-post/)
 *  [101Phil](https://wordpress.org/support/users/101phil/)
 * (@101phil)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/can-i-run-a-php-file-from-a-wordpress-page-or-post/#post-2927297)
 * Take a look at this plugin it may be what you are looking for.
    [http://wordpress.org/extend/plugins/exec-php/](http://wordpress.org/extend/plugins/exec-php/)
 * I use it mostly in the form of putting small PHP snippets inside of a widget.
   You could look at creating a new page template with a widget area to house your
   tour functions.
 * Then create a new page Tour (or what ever) and choose the Tour Template for that
   page.
 * Could be a quick and easy solution for you.

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/101phil/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/101phil/replies/page/2/?output_format=md)