• Resolved nmccainjr

    (@nmccainjr)


    Hello,

    Using your preselect ad category snippet, Is there a way to put categories in an pulldown or in rows?

    Thanks,
    Norman

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    if you are using both Preslelect Ad Category and Dependant Taxonomy Dropdown snippets then you can add in your wp-config.php file the line below

    
    define( "PRESELECT_AD_CATEGORY_USE_DTD", 1 );
    

    Then the preselect category will use DTD instead of categories tree.

    Make sure you are using the latest PAD and DTD versions otherwise this line will have no effect on site.

    Thread Starter nmccainjr

    (@nmccainjr)

    Hello

    When I click on select it redirects to same page.

    https://www.sellyourstufffree.com/ad-listing/create-ad/

    Thanks
    Norman

    Thread Starter nmccainjr

    (@nmccainjr)

    Also, how can I make the flash message and the category field shorter?

    Plugin Author Greg Winiarski

    (@gwin)

    When the form is submitted the preselect_ad_category_dtd_redirect() function in preselect-ad-category.php file is executed.

    In your case it looks like it is either not run for some reason or it fails when validating a nonce or when checking if the selected category value is a valid number.

    Anyway, you would need to start the troubleshooting there.

    Thread Starter nmccainjr

    (@nmccainjr)

    It’s fixed

    I move the “define( “PRESELECT_AD_CATEGORY_USE_DTD”, 1” to the top of the wp-config.php

    Plugin Author Greg Winiarski

    (@gwin)

    Ok great, i am marking the thread as resolved then :).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘preselect ad category snippet’ is closed to new replies.