Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter 101Phil

    (@101phil)

    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.

    So you want a different layout for your homepage, then your pages underneath?

    Excellent glad I could help…

    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.

    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.

    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?

    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;

    Thread Starter 101Phil

    (@101phil)

    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>";
    }
    Thread Starter 101Phil

    (@101phil)

    Hi Jon,

    It is truly returning no results.. Im not erroring at all…

    Hmm strange one

    Thread Starter 101Phil

    (@101phil)

    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.

    Thread Starter 101Phil

    (@101phil)

    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);

    Thread Starter 101Phil

    (@101phil)

    Ps I have removed the ) after the ‘meta_value’ => ‘Gold’ ), in my commented out query, saved tested and this didn’t do it either.

    Thread Starter 101Phil

    (@101phil)

    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.]

    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.

    Take a look at this plugin it may be what you are looking for.
    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)