Alex Howes

Forum Replies Created

Viewing 15 posts - 46 through 60 (of 131 total)
  • Author
    Posts
  • in reply to: Link to users listing from listing id #432617

    Alex Howes
    Expired Member
    Post count: 175

    I’m writing it programmatically as part of a snippet. The snippet creates a new tab on the user’s profile and adds links to other users’ CVs. The $cv_id is a string containing the id of the listing, in this case ‘438’ (I’ve checked this). The tab and link are being created fine. When you click on the link, it reloads the page (the user’s account page) but with the url appended by /[gd_cv_link%20id=cv_id]/. I’ve also checked it using ‘438’ rather than $cv_id, but this doesn’t make a difference. The section of my code is:

    
    
    $cv_url = gd_cv_link($cv_id);
    echo '<a href="[gd_cv_link id=$cv_id]">View Worker CV</a>';
    in reply to: Link to users listing from listing id #432550

    Alex Howes
    Expired Member
    Post count: 175

    Thanks for your response Kiran.

    I’ve added it, but instead of the link going to the user’s CV, it reloads the same page but with [gd_cv_link%20id=cv_id]/ appended on the end of the url. Do you know what the problem might be?

    Thanks,
    Alex

    in reply to: JSON endpoint privacy #432496

    Alex Howes
    Expired Member
    Post count: 175

    Hi Stiofan,

    I’m most concerned about the personal data that is entered into listings, like email addresses, telephone numbers, and names.

    Alex

    in reply to: Link to users listing from listing id #432495

    Alex Howes
    Expired Member
    Post count: 175

    Thanks Paolo, no problem. Hope you’re enjoying memorial day 🙂

    in reply to: Link to users listing from listing id #432346

    Alex Howes
    Expired Member
    Post count: 175

    Hi Alex, I don’t want to get the listing data, I want to get the url of the listing page.

    Alex

    in reply to: Link to users listing from listing id #432312

    Alex Howes
    Expired Member
    Post count: 175

    Sorry, I’ll try to explain better.

    One of my CPTs is CVs. I’m adding some extra information to a custom tab on the profile page as part of a snippet, to allow some users to view some other users’ CVs. I’ve written:

    echo '<a href="url">View Worker CV</a>';

    where the url I’d like to go to is a user’s listing detail page. I have the listing id of the listing. Is this possible? I’m not sure how to get the url because the page is dynamic.

    Thanks,
    Alex

    in reply to: Multiple shortcodes on same page #431420

    Alex Howes
    Expired Member
    Post count: 175

    In the end I used CSS to swap the sidebar and main content, and then resize them, and then put the add listing form in the new “sidebar”. Probably a bit of an ugly way to do it, but quite simple and it worked 🙂

    in reply to: Multiple shortcodes on same page #431414

    Alex Howes
    Expired Member
    Post count: 175

    Cool, thanks for the info 🙂

    in reply to: Multiple shortcodes on same page #431322

    Alex Howes
    Expired Member
    Post count: 175

    As a way to get around this problem I thought I’d put the listings in the main content and the add listing form in a widget, but the add listing form isn’t working in a widget. Is there a way to solve that?

    in reply to: Multiple shortcodes on same page #431321

    Alex Howes
    Expired Member
    Post count: 175

    Ok, thanks.

    Alex

    in reply to: Multiple shortcodes on same page #431316

    Alex Howes
    Expired Member
    Post count: 175

    Oh, sorry, I didn’t realise that. Is there a way to get round it?

    The thing is that I want users to see a list of unclaimed listings before they register one, to try to minimise multiple submissions of the same listing.

    in reply to: GD listings claimed unclaimed #430805

    Alex Howes
    Expired Member
    Post count: 175

    Thanks Kor

    I think I’ll write a snippet to add a “claimed” or “unclaimed” tag to them and then filter them that way.

    in reply to: GD Listings by ID #430803

    Alex Howes
    Expired Member
    Post count: 175

    Great, thanks Kiran, it’s working now 🙂

    in reply to: GD Listings by ID #430691

    Alex Howes
    Expired Member
    Post count: 175

    Sorry, it isn’t working. It was adding the wrong tag. I’ve written the code:

    
    
    	  $tag = $value;
    	  geodir_save_post_meta( $value, 'post_tags', array( $tag ) );
    	  wp_set_object_terms( $value, array( $tag ), get_post_type( $value ) . '_tags' );
    	  echo do_shortcode('[gd_listings post_type=gd_cv layout=1 tags=$tag]');

    where $value is a string of the listing ID, which I’m also using as a unique tag for the listing. The tag is attached to the listing correctly (I checked the JSON endpoint), so the problem is in the GD listings shortcode. Currently it prints every listing of type gd_cv, rather than just the ones tagged with $tag.

    Is it possibly because it’s looking for literally ‘$tag’ rather than the contents of $tag?

    in reply to: GD Listings by ID #430684

    Alex Howes
    Expired Member
    Post count: 175

    Cool, that’s working, thanks a lot for your help with this 🙂

Viewing 15 posts - 46 through 60 (of 131 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount