Support Forum » User Profile

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Trying to pull posts using either an array or wildcard #37220
    info@insigniacreative.co.uk[email protected]
    Participant
    {% set name_array = [showreel-6, promotional-video-3] %}
    {% set value = mb.custom_function( name_array ) %}
    {% set args = {post_type: "sfwd-essays", name: name_array, author: user.ID, post_status: "graded", posts_per_page: 10 } %}
    {% set posts = mb.get_posts( args ) %}
    Hi {{ user.first_name }}, Here's your video submissions!
    {% for post in posts %}
    <br>
    <a href="{{ mb.get_permalink( post.ID ) }}" target="_blank" rel="noopener">{{ post.post_title }} {{( post.ID )}}</a>
    {% endfor %}
    in reply to: Get post ID #30809
    info@insigniacreative.co.uk[email protected]
    Participant

    Thanks Long

    Works a treat

    in reply to: CPT Loop by Category #28417
    info@insigniacreative.co.uk[email protected]
    Participant

    Hi,

    Thanks for all your help that worked perfectly!

    in reply to: CPT Loop by Category #28409
    info@insigniacreative.co.uk[email protected]
    Participant

    Update,

    I've now got the images to show using this code below. Could you tell me how I can make it only pull the information from a certain post category.

    <div class="sidebarnews">    
        {% set args = {post_type: 'project', posts_per_page: 10} %}
        {% set posts = mb.get_posts( args ) %}
        {% for post in posts %} 
            {# Image #}
            {% set image = mb.rwmb_meta( 'logo_market', '', post.ID ) %}
            <img src="{{ image['full_url'] }} "> 
    
            {{ mb.get_the_post_thumbnail( post.ID, 'thumbnail' ) }}
        {% endfor %}    
    </div>
    in reply to: CPT Loop by Category #28407
    info@insigniacreative.co.uk[email protected]
    Participant

    Hi,

    I'm still a bit confused I'm not sure what I need to do.

    Could you please show me an example.

    Thanks.

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