Results 1 to 5 of 5

Thread: Is there a function for finding out if the current page is in the classified section?

  1. #1
    Thread Starter
    Amateur ephibiz's Avatar
    Join Date
    Jul 2012
    Location
    United States
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is there a function for finding out if the current page is in the classified section?

    I'd like to show certain things based on if the current page is a classified-related page or not.

    For example, the "Post Ad" button should only show in the classified section, not the blog section. I'd like to use something like: if (is_page("classified")) { //do something }. Is there a function for this? The function is_home() only recognizes the classifieds home page, but not any other pages, such as categories and individual ad listings.

    Thanks for the help.

  2. #2
    Thread Starter
    Amateur ephibiz's Avatar
    Join Date
    Jul 2012
    Location
    United States
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  4. #4
    Thread Starter
    Amateur ephibiz's Avatar
    Join Date
    Jul 2012
    Location
    United States
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    Amateur ephibiz's Avatar
    Join Date
    Jul 2012
    Location
    United States
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What is googles adwords policy on classified sites with an adult section?
    By badmaash in forum ClassiPress General Discussion
    Replies: 4
    Last Post: June 8th, 2012, 10:26 AM
  2. [SOLVED] Finding all instances of term "classified ads" throughout the site
    By howiej in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: May 5th, 2012, 10:02 AM
  3. Classified ads in sub-section of site rather than main page
    By lappyhappy in forum ClassiPress General Discussion
    Replies: 2
    Last Post: November 1st, 2010, 09:48 AM