Results 1 to 2 of 2

Thread: Modify permalink with custom field in the post_type_permalink variable

  1. #1
    Thread Starter
    Rookie ebfjohnson's Avatar
    Join Date
    May 2022
    Thanked 0 Times in 0 Posts

    Modify permalink with custom field in the post_type_permalink variable


    I migrated from the location-based wordpress multisite structure to a free or paid multisite structure and need bring location back into my permalink structure.

    There is a perfect custom field I added with a drop down list called cp_area and I need to add the value of this for each ad_listing post_type to the URL so the listings will be displayed in their proper localiity.

    I found that replacing the word "Ads" in the Permilink Settings field called post_type_permalink with "%cp_area%" did not get dynamically replaced with the meta_value for the ad_listing.

    After looking through the code I did not find an example from which to copy from or a means by which to accomplish this change. What I would prefer to do would be to make a change in the classipress-child theme if possible.

    Any help would be much appreciated !!!



  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Thanked 3,297 Times in 3,168 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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom link using variable
    By samted in forum HireBee General Discussion
    Replies: 0
    Last Post: July 6th, 2015, 06:17 PM
  2. How to add extra custom field without classipress custom field menu ?
    By annecyloc in forum ClassiPress General Discussion
    Replies: 0
    Last Post: January 2nd, 2013, 02:54 PM
  3. Replies: 1
    Last Post: October 24th, 2012, 01:58 PM
  4. Custom Field as Post Title and Permalink
    By d1ma in forum ClassiPress General Discussion
    Replies: 3
    Last Post: July 29th, 2011, 03:45 AM