Support

Account

Forum Replies Created

  • Hi Elliot

    I asked the above question about custom location rules relating to media types back in May but was unable to get any help to resolve the issue.

    It’s now six months on and i really need to get this sorted. Is there a way I can pay for support to get this issue resolved? Please can you let me know as I’m six month behind in getting this project up and running.

    I look forward to hearing from you about this matter

    Many thanks

    Phil

  • OMG – What’s happening – I’m tearing my hair out here. Have I done something wrong, pissed someone off or something.

    I posted my original question to this string a while back thinking it was a reasonable question to ask, but having received excellent support/help on previous posts, I don’t seem to be getting any response. Maybe I was lucky on previous occasions when I seemed to receive help/support 24hrs later without fail.

    Have just spent 4 hours going through the forums/documentation to see if I can solve my issue but haven’t really got anywhere.

    Maybe Elliot’s on holiday or something?

    If I have annoyed someone or am not doing something correctly in my post I’d really appreciate if someone could please tell me or point me towards what I have done wrong & how to move forward.

    Many thanks in advance to anyone who can help me

    Phil

  • Hi Elliot

    Posted this around 2 weeks ago – was wondering if you could get back to me on it or let me know if there’s an issue?

    Many thanks

    Phil

  • Hi Elliot – Thanks for the Debugging info – very useful and I now have a page that is at least rendering in a browser window.

    Still working on this if statement issue – at the moment on the page, all thumbnails open up to the full size image. However, I’m trying to have a situation where, if I’ve entered a url in repeater/subfield 2 then I want it to go to that url rather than load the image. For me, the fact that this doesn’t work implies that the if($links) part of the code (see below) is always taking the else option, so I need to solve what’s wrong with the first part/option, or if it’s not that, the overall structure of the if statement may be at fault. As I said before, this is beyond my current coding knowledge and would appreciate if you could have a look & see if you can see what’s wrong.

    For instance – do I have to include a foreach($links as $link) in this section, similar to the foreach($rows as $row) in the previous bit of code? This might not be the case, but this is where my coding knowledge falls short and any help would be most appreciated.

    To view the page I’m working on in a browser please click here

    Many thanks in advance for your help

    Phil

    
    <?php 
    // using normal array
    $rows = get_field('press_badge');
    
    if($rows)
    {
    	echo '<ul id="pressBadgesList" class="pressBadgesList">';
    	foreach($rows as $row)
    	{
    		echo '<li>' . '<div class=\'radio_badge_title\'><p>' . $row['press_title_printed'] . '</p></div>';
    
    		$links = get_sub_field('press_url');
    		if($links) {
    				echo '<' . 'a ' . 'target=' . '\'_blank\'' . 'href=' . $row['press_url'] . '>' ;
    				}
    				else
    				{echo '<' . 'a ' .  'rel=\'lightbox[reviews]\'' . 'href=' . $row['press_image_printed']  . '>'; }
    
    			
    		echo '<' . 'img src=' . $row['press_image_printed'] . ' width=\'150\'' . 'height=\'150\'' . '>' .'</a>'.'</li>';
    	}
    	echo '</ul>';
    }
    ?>
    
  • Sorry Arcanepsyche, I tried to be as clear as possible.

    You ask what is not working. Well . . . to answer that, the page just comes up with no content at all – just a blank page! so I guess I’ve made a mistake in the coding somewhere & I believe the problem is in the area marked // Start/End of section that doesn’t work – since if I remove that bit of code the page renders but without the link.

    On the other point – interesting that you say I should be using get_sub_field instead of get_field – however, I have just replaced get_field with get_sub_field in the section of code not working (like you suggested) but it still just creates a blank page (see below for code) – As i said before my php coding is basic to say the least and would appreciate any help you can give. Many thanks Phil

    <div class="radioBadges">
    <?php 
    // using normal array
    $rows = get_field('press_badge');
    if($rows)
    {
    	echo '<ul id="pressBadgesList" class="pressBadgesList">';
    	foreach($rows as $row)
    	{
    		echo '<li>' . '<div class=\'radio_badge_title\'><p>' . $row['press_title_printed'] . '</p></div>' ;
    
    // Start of section that doesn't work
    		
    		$links = get_sub_field('press_url');
    		if($links) {
    				echo '<' . 'a ' . 'target=' . '\'_blank\'' . 'href=' . $row['press_url']  . '>' 
    				}
    				else
    				{echo '<' . 'a ' .  'rel=\'lightbox[reviews]\'' . 'href=' . $row['press_image_printed']  . '>' };
    
    // End of section that doesn't work
    
    		echo ('<' . 'img src=' . $row['press_image_printed'] . ' width=\'150\'' . 'height=\'150\'' . '>' .'</a>'.'</li>');
    	}
    	echo '</ul>';
    }
    ?>
    </div>
    
  • Many thanks Elliot.

    I’ve now managed to convert all my websites to V4. Again – a marvellous plugin

Viewing 6 posts - 1 through 6 (of 6 total)