Add Listing without Preview

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

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

Open Support Ticket
  • Author
    Posts
  • #112092

    Dylan
    Expired Member
    Post count: 40

    Hello,

    Is there a way to add a listing, but without viewing it on the preview page.

    In other words, I want to bypass the preview, and create the custom post type record.

    Thanks.

    #112094

    Guust
    Moderator
    Post count: 29970

    Sorry, that’s not possible, that is where the publish button is.

    #112492

    Paolo
    Site Admin
    Post count: 31211

    I can confirm, data is saved in the database from the preview page, not the add listing page.
    Skipping that step would require a major customization.

    Thanks

    #112496

    Dylan
    Expired Member
    Post count: 40

    Hi Guust,

    Ok, then is it possible to remove the listing content, and the sidebar from the listing preview page (i.e. – only show the preview section with the ‘Go Back and Edit’, ‘Cancel’, and ‘Publish’ buttons?

    I am trying to edit the preview-buttons.php template to remove it, but I have not been successful yet.

    Thanks.

    #112502

    Paolo
    Site Admin
    Post count: 31211

    Why not just hide them with css?

    #112518

    Dylan
    Expired Member
    Post count: 40

    Hi Paolo,

    Yes, of course I can hide it with CSS.

    But the most efficient method is to prevent those sections from generating at all, via code.

    I will use CSS though.

    Thanks.

    #112519

    Paolo
    Site Admin
    Post count: 31211

    I pointed you towards css because it 10 times simpler.

    Preview and detail page are the same template: listing-detail.php

    Removing elements for the preview page and not for the detail page would be a nightmare compared to do it via css.

    If you feel like going that way, now you know which template to start from. 🙂

    Thanks

    #112525

    Dylan
    Expired Member
    Post count: 40

    Thanks for the info and pointer.

    #112529

    Paolo
    Site Admin
    Post count: 31211

    You are welcome!

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount