Author Parameter in Shortcode

This topic contains 44 replies, has 2 voices, and was last updated by  Paolo 8 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #155882

    Paolo
    Site Admin
    Post count: 31206

    done, copied and pasted in your new theme functions.php and no errors are coming up.

    Let us know,

    Thanks

    #155973

    Matt Gray
    Expired Member
    Post count: 131
    This reply has been marked as private.
    #155994

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    please add this to gd >> design >> scripts >> custom css:

    
    
    #geodir-wrapper {
        width: 100%;
    }
    .single.geodir-page .header-area {
        display: none;
    }

    The second part will prevent the title from showing twice.

    Thanks

    #156915

    Matt Gray
    Expired Member
    Post count: 131
    This reply has been marked as private.
    #157351

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    did you add the css I suggested?

    It doesn’t look like it.

    Let me know,

    Thanks

    #157429

    Matt Gray
    Expired Member
    Post count: 131

    I made a mistake. Yes, it’s good now. Thank you!

    #157436

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

    #157563

    Matt Gray
    Expired Member
    Post count: 131
    This reply has been marked as private.
    #157607

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    please add this to your custom css:

    
    
    #projectsTab .geodir_category_list_view li {
        margin-left: 0;
        margin-right: 0;
    }

    Thanks

    #157610

    Matt Gray
    Expired Member
    Post count: 131

    Perfect on the spacing!

    Is there anyway to get more words in there now? Where is this section controlled?

    Thank you.

    #157614

    Paolo
    Site Admin
    Post count: 31206

    you need to add the parameter character_count in the function that I added to your theme.

    basically change this part:

    
    
    
    {echo do_shortcode('[gd_listings post_type="gd_contractor_projec" post_author="current" post_number="10" add_location_filter="0"]');}
    }

    with

    
    
    
    {echo do_shortcode('[gd_listings post_type="gd_contractor_projec" post_author="current" post_number="10" character_count="150" add_location_filter="0"]');}
    }

    Thanks

    #157616

    Matt Gray
    Expired Member
    Post count: 131

    I am really sorry. You totally lost me there. I have no idea what to do with the above answer. Can you give me more instructions?

    Thank you.

    #157618

    Paolo
    Site Admin
    Post count: 31206

    I added a function to your child theme functions.php file to show those listings in a custom tabs, remember? (https://wpgeodirectory.com/support/topic/author-parameter-in-shortcode/page/2/#post-145630)

    You need to find this part of that code:

    
    
    {echo do_shortcode('[gd_listings post_type="gd_contractor_projec" post_author="current" post_number="10" add_location_filter="0"]');}
    } 

    and replace it with

    
    
    
    {echo do_shortcode('[gd_listings post_type="gd_contractor_projec" post_author="current" post_number="10" character_count="150" add_location_filter="0"]');}
    }

    Now all this is really beyond support and you should hire a professional if you want/need to customize anything else.

    Thanks

    #157873

    Matt Gray
    Expired Member
    Post count: 131

    Hey Paolo,

    I understand. I can do that for some customizations. Do you have anyone that you would recommend for “touchups”. I just need a few modifications to make it perfect now.

    I have one other issue with the menus but I need to open another tread so you can close it after you take a look.

    Thanks for all your help. It’s been a great experience!

    #157963

    Paolo
    Site Admin
    Post count: 31206

    Just post in the jobs section of the forum. Guust might be interested.

    Thanks

Viewing 15 posts - 31 through 45 (of 45 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket