Support

Account

Forum Replies Created

  • I’d love to see this soon as well! Building client areas vs keeping track of development at the same time can sometimes be a bit of a compromise.

    A workaround is creating clone fields to import other disabled fields so you can have the development version and then rename it nicely in another group.

  • Hey James,

    That is close to what I want but I need it to also check if those posts are related to the other posts as well haha.

    I’ll see if I can get myself sorted out with what you’ve given me. It’s obvious I’ve gotten myself in a little deeper than I understand.

    Thanks for the all the information and your time! I’ll post my solution should I figure it out.

  • Thanks James,

    I’m not sure if I’m not understanding your code or if I didn’t explain my problem properly. I believe I am already able to output what you have suggested with a query like this(?):

    $args = array (
    	'post_type'				=> 'stockists',
    	'post__in'				=> $participating_ids,
    	'meta_key' 				=> 'stockist_address_0_stockist_country',
    );

    This gives me a list of stockists, as does your code — as far as I can tell.

    I need a list of countries but only if they are on posts that have the relationship. Then also the country should only appear once. I am trying to use them as headings for the stockists in the promotion e.i.:

    Participating Stockists
    =======================
    England
    ——-
    – Stockist

    Scotland
    ——–
    – Stockist

    Wales
    —–
    – Stockist

    I was just asking about the first part of getting the countries to list out but I would then make sure the nested loop only outputted stockists in the country AND the current promotion relationship.

    I’m no programmer so forgive me if I’ve missed if your solution is actually doing that.

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