Support Forum » User Profile

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Dump all available custom fields from MB Views #28533
    Joseph ShrockJoseph Shrock
    Participant

    That works, thank-you so much!

    in reply to: Dump all available custom fields from MB Views #28502
    Joseph ShrockJoseph Shrock
    Participant

    Would you mind giving me the correct syntax for this, so I can just drop it on the page? - Thanks!

    in reply to: Dump all available custom fields from MB Views #28465
    Joseph ShrockJoseph Shrock
    Participant

    Could you share the exact syntax I would need to use for that:

    <?php
    get_post_custom()
    ?>

    is not working.

    Joseph ShrockJoseph Shrock
    Participant

    Thank-you and also thanks to some code I found elsewehere, I was also able to get it enqueued via a wp-plugin called Code Snippets but it would have also worked in the functions.php file as well.

    <?php
    function pwwp_enqueue_my_scripts() {
        // jQuery is stated as a dependancy of bootstrap-js - it will be loaded by WordPress before the BS scripts 
        wp_enqueue_script( 'bootstrap-js', '//stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js', array('jquery'), true); // all the bootstrap javascript goodness
    }
    add_action('wp_enqueue_scripts', 'pwwp_enqueue_my_scripts');
    
    function pwwp_enqueue_my_styles() {
        wp_enqueue_style( 'bootstrap', '//stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' );
    
        // this will add the stylesheet from it's default theme location if your theme doesn't already
        //wp_enqueue_style( 'my-style', get_template_directory_uri() . '/style.css');
    }
    add_action('wp_enqueue_scripts', 'pwwp_enqueue_my_styles');
    ?>

    And here is the one used for TailwindCSS

    <?php
        function pwwp_enqueue_my_styles() {
        wp_enqueue_style( 'bootstrap', '//unpkg.com/[email protected]/dist/tailwind.min.css' );
    
        // this will add the stylesheet from it's default theme location if your theme doesn't already
        //wp_enqueue_style( 'my-style', get_template_directory_uri() . '/style.css');
    }
    add_action('wp_enqueue_scripts', 'pwwp_enqueue_my_styles');
    ?>
    in reply to: Photos not displaying inline image advanced #28420
    Joseph ShrockJoseph Shrock
    Participant

    Thanks, I also had to add float:left; to get it working - thanks!

    <ul style="list-style: none;">
        {% for item in post.puppy_photos %}
        <li style="display: inline; float:left;"> 
            <a href="{{ item.large.url }}" > <img src="{{ item.thumbnail.url }}" width="{{ item.thumbnail.width }}" height="{{ item.thumbnail.height }}" alt="{{ item.thumbnail.alt }}"> </a>
        </li>
        {% endfor %}
    </ul>
    in reply to: TailwindCSS #28394
    Joseph ShrockJoseph Shrock
    Participant

    What would be the easiest way then to get TailwindCSS working in MetaBox views - can we just drop in some code or pull in a cdn-url in the "CSS tab" of views perhaps? An example provided would be very helpful, please?

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