Support Forum » User Profile

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Conditional logic may not be working #39663
    Dan SmithDan Smith
    Participant

    I can confirm this as well. I've tried this on several of my sites. If you select Location → Post Type → Page ( page ). Then under Advanced location rules → +add rule, the select box is blank and if you click into that box it doesn't bring up any of the available pages on the website. If you try to help it along and type the first letter of a page, as stated above, the form auto reloads to a blank page.

    Dan SmithDan Smith
    Participant

    Thanks for the reply, once I changed my code to what you suggested everything worked as expected.

    in reply to: Open Street Map and Bricks. Code r doesn't work #38970
    Dan SmithDan Smith
    Participant

    I'm having a problem as well using the above code. In my case the maps display briefly then bring up a google error:
    Oops! Something went wrong.
    This page didn't load Google Maps correctly. See the JavaScript console for technical details.

    Google shouldn’t have any concern with this, that’s why I was using Open Streets Map.

    Hopefully when you assist Shemzone it will also give me a bump in the right direction.

    in reply to: Group Video Nested In A Group #38825
    Dan SmithDan Smith
    Participant

    thanks, got me close enough that I now have an idea about what I'm doing.

    in reply to: Image display in a Group Problem #36491
    Dan SmithDan Smith
    Participant

    That worked, thanks!

    in reply to: Image display in a Group Problem #36468
    Dan SmithDan Smith
    Participant

    I appreciate the answer though if I replace the code you and your documentation have provided I get an error for line 3

    <?php 
    	$group = rwmb_meta( 'car' );
    	$image_ids = $group['image_key'] ?? : [];
    	foreach ( $image_ids as $image_id ) {
    		$image = RWMB_Image_Field::file_info( $image_id, ['size' => 'thumbnail'] );
    		echo '<img src="' . $image['url'] . '">';
    	}
    ?>

    Even though it says image_key and not image_id I tried it as above, then replaced the 'image_key' with the id for my image, same result for both attempts, error line 3

    in reply to: Error using cloneable text field #32335
    Dan SmithDan Smith
    Participant

    Been kind of distracted lately, just noticed that the other meta box fields were blank within the editor. I'm guessing the data isn't there until the repeater content is display on the frontend.

    I added

    <?php
       if (rwmb_meta( 'music', '', $postal )) : ; 
        $postal =  get_the_id();
        $values = rwmb_meta( 'music', '', $postal ) ;
        echo 'Music: ';
        foreach ( $values as $value ) {
             echo $value;
             echo '<br />';
        }
        endif;
    ?>

    Error is gone and everything works ok on the frontend.

    in reply to: Error using cloneable text field #32301
    Dan SmithDan Smith
    Participant

    It's easy enough to get the post ID in a repeater. I have code in another plugin which causes the display of the id as a column when I display all the posts.

    Placing this code:

    <?php
        $postal =  get_the_id();
           echo $postal;
        $values = rwmb_meta( 'music', $postal ) ;
        foreach ( $values as $value ) {
            echo $value;
            echo '<br />';
        }
    ?>

    I get the display
    598I Don't Need the Booze by Alan Jackson
    Redneck Love Gone Bad by Diamond Rio
    You Turn Me On by Tim McGraw
    That Don’t Impress Me Much by Shania Twain

    598 Is the ID for that particular Post and each subsequent post has the correct ID as well yet I am still getting the error.

    in reply to: Error using cloneable text field #32262
    Dan SmithDan Smith
    Participant

    The code block is on a page. The problem, maybe that it is within an Oxygen Repeater. Tried adding the $post_id, checked online, some suggested a '&' in front of the $value, tried that.

    Same error, still working on frontend.

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