Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,061 through 3,075 (of 3,958 total)
  • Author
    Posts
  • in reply to: โœ…How to 'specify path to config file' in theme mode? #4417
    Anh TranAnh Tran
    Keymaster

    Hi,

    I think there's a misunderstanding here. The extension provides UI for users to enter the config or specify the path to the config file (as instructed here). It doesn't work if you specify the path to the config file in your code.

    in reply to: Need help for Paging #4409
    Anh TranAnh Tran
    Keymaster

    How to you want your pagination to be?

    in reply to: Front-end display/input #4400
    Anh TranAnh Tran
    Keymaster

    Hi, currently, the plugin doesn't support showing the inputs in the frontend yet.

    in reply to: โœ…Using with Include_Exclude doesn't work #4390
    Anh TranAnh Tran
    Keymaster

    Yes, that would work, too. I'm refactoring the code to make it better ๐Ÿ™‚

    in reply to: โœ…Using with Include_Exclude doesn't work #4387
    Anh TranAnh Tran
    Keymaster

    I have a solution for that, but it requires both the core plugin and the extension to update. I'm thinking about backward compatibility.

    in reply to: Settings Page - Radio Buttons and Conditional Logic #4381
    Anh TranAnh Tran
    Keymaster

    I've released new version which fixed this bug. Please download and enjoy ๐Ÿ™‚

    in reply to: Nested group php call #4378
    Anh TranAnh Tran
    Keymaster

    Ah, sorry, for image fields, the returned value is always an array. You need to change the code to:

    $object_imgs = isset( $sector['rw_sector-object-image'] ) ? $sector['rw_sector-object-image'] : array();
    if ( ! empty( $object_imgs ) ) {
        foreach ( $object_imgs as $object_img ) {
            echo '<div class="sector-object-img">
                <div class="slider slider-for">
                <img src="' . wp_get_attachment_image_url( $object_img, 'type=image_advanced&size=full&multiple=true' ) . '">
            </div>
            </div>';
        }
    }
    in reply to: Use of Limit Parameter #4377
    Anh TranAnh Tran
    Keymaster

    You can use this code:

    $metaBackgroundImage = rwmb_meta( 'socialityandydote_background_image' );
    $metaBackgroundImage = empty( $metaBackgroundImage ) ? '' : reset( $metaBackgroundImage );

    This takes the first image from the returned array. Then you can use it without the foreach loop.

    in reply to: Number field not showing std #4376
    Anh TranAnh Tran
    Keymaster

    Just tried your code and 48 shows up as default value for me. Please note that it works only for the posts where the meta box hasn't been saved. You can check it with new posts.

    in reply to: Number field not showing std #4373
    Anh TranAnh Tran
    Keymaster

    Dear armandmorin,

    Please make sure the {$prefix}hero_type field is eq to headline_sub

    Cheers!

    in reply to: Help Update option value #4366
    Anh TranAnh Tran
    Keymaster

    This is resolved on Github: https://github.com/rilwis/meta-box/issues/1001.

    in reply to: Bug with the ids of the clonable fields. #4365
    Anh TranAnh Tran
    Keymaster

    Looks like the regex pattern matches the wrong position. I will take a look at that.

    Thanks for letting me know.

    in reply to: Nested group php call #4364
    Anh TranAnh Tran
    Keymaster

    No problem, here you are:

    <?php
    $prefix = '';
    $sectors = rwmb_meta( "{$prefix}sector" );
    if ( ! empty( $sectors ) ) {
    	foreach ( $sectors as $sector ) {
    		$sector_heading = isset( $sector["{$prefix}sector-heading"] ) ? $sector["{$prefix}sector-heading"] : '';
    		echo $sector_heading;
    
    		$sector_title = isset( $sector["{$prefix}sector-title"] ) ? $sector["{$prefix}sector-title"] : '';
    		echo $sector_title;
    
    		$objects = isset( $sector["{$prefix}sector-object"] ) ? $sector["{$prefix}sector-object"] : array();
    		foreach ( $objects as $object ) {
    			$object_img = isset( $object["{$prefix}sector-object-img"] ) ? $object["{$prefix}sector-object-img"] : '';
    			if ( $object_img ) {
    				echo '<img src="' . wp_get_attachment_image_url( $object_img, 'size' ) . '">';
    			}
    			$object_desc = isset( $object["{$prefix}sector-object-description"] ) ? $object["{$prefix}sector-object-description"] : '';
    			echo $object_desc;
    		}
    	}
    }
    in reply to: Feature request : admin list filters (taxonomies...) #4363
    Anh TranAnh Tran
    Keymaster

    Awesome features and links. I will make a note.

    in reply to: โœ…How to add icons to checkboxes? #4362
    Anh TranAnh Tran
    Keymaster

    That also works :). Remember to strip_tags on the frontend when you retrieve the meta value ๐Ÿ™‚

Viewing 15 posts - 3,061 through 3,075 (of 3,958 total)