# \#code

**URL:** https://community.hivepress.io/tag/code/28.md

[Latest](https://community.hivepress.io/latest.md) · [Categories](https://community.hivepress.io/categories.md) · [Tags](https://community.hivepress.io/tags.md)

---

## [Can I restrict members by location](https://community.hivepress.io/t/can-i-restrict-members-by-location/17994)

<div class="topic-metadata">

**Author:** [@debharrison](https://community.hivepress.io/u/debharrison)\
**Replies:** 1\
**Last updated:** [September 18, 2026, 4:43pm UTC](https://community.hivepress.io/t/can-i-restrict-members-by-location/17994 "2026-09-18T16:43:00Z")

</div>

Hi I am about to create a directory. Using GeoLocation, would it be possible to restrict members based on location? We were thinking of allowing them to advertise in three locations (for example Essex, London and Suffo…

---

## [HivePress 1.7.31 ignores images max\_files snippet](https://community.hivepress.io/t/hivepress-1-7-31-ignores-images-max-files-snippet/17959)

<div class="topic-metadata">

**Author:** [@K1S1N](https://community.hivepress.io/u/K1S1N)\
**Replies:** 11\
**Last updated:** [September 11, 2026, 9:09am UTC](https://community.hivepress.io/t/hivepress-1-7-31-ignores-images-max-files-snippet/17959 "2026-09-11T09:09:17Z")

</div>

HivePress 1.7.31 ignores images max\_files snippet The following snippet worked in 1.7.30: add\_filter( 'hivepress/v1/models/listing', function( $model ) { $model\\\['fields'\\\]\\\['images'\\\]\\\['max\_files'\\\] = 100; ret…

---

## [Related / Similar Listings Algorithm Change](https://community.hivepress.io/t/related-similar-listings-algorithm-change/17961)

<div class="topic-metadata">

**Author:** [@Arthur](https://community.hivepress.io/u/Arthur)\
**Replies:** 3\
**Last updated:** [September 8, 2026, 4:36pm UTC](https://community.hivepress.io/t/related-similar-listings-algorithm-change/17961 "2026-09-08T16:36:02Z")

</div>

Hello, I’m curious about how I can modify the algorithm/query of the Related Listings carrousel shown on the single listing page. Right now, it seems a bit incomplete; for example, let’s say I have 3 items from the sam…

---

## [How do I use WPDiscuz with HivePress?](https://community.hivepress.io/t/how-do-i-use-wpdiscuz-with-hivepress/17909)

<div class="topic-metadata">

**Author:** [@BrendaRobosa](https://community.hivepress.io/u/BrendaRobosa)\
**Replies:** 9\
**Last updated:** [August 18, 2026, 12:34pm UTC](https://community.hivepress.io/t/how-do-i-use-wpdiscuz-with-hivepress/17909 "2026-08-18T12:34:12Z")

</div>

Hi, I’m trying to use wpDiscuz on ListingHive listings, and I’ve run into several issues that I hope someone can clarify for the current (2026) version of HivePress. What I’ve already tried 1. Enabled Reviews and rename…

---

## [Omit location in search bars?](https://community.hivepress.io/t/omit-location-in-search-bars/17883)

<div class="topic-metadata">

**Author:** [@Knode](https://community.hivepress.io/u/Knode)\
**Replies:** 1\
**Last updated:** [August 5, 2026, 1:01pm UTC](https://community.hivepress.io/t/omit-location-in-search-bars/17883 "2026-08-05T13:01:07Z")

</div>

Is this possible, so that the search bar only has keywords, and then the user could use the map after the search results come up?

---

## [Listing moderation after updates and category changes](https://community.hivepress.io/t/listing-moderation-after-updates-and-category-changes/17874)

<div class="topic-metadata">

**Author:** [@EscortsCollective](https://community.hivepress.io/u/EscortsCollective)\
**Replies:** 2\
**Last updated:** [July 31, 2026, 10:37am UTC](https://community.hivepress.io/t/listing-moderation-after-updates-and-category-changes/17874 "2026-07-31T10:37:47Z")

</div>

Hello HivePress Support Team, We would like to ask for your guidance regarding two aspects of the listing management workflow: Requiring moderation after every listing update Once a listing has been approved and publ…

---

## [How to add custom badges to the new Badges extension?](https://community.hivepress.io/t/how-to-add-custom-badges-to-the-new-badges-extension/17872)

<div class="topic-metadata">

**Author:** [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Replies:** 2\
**Last updated:** [July 30, 2026, 7:59pm UTC](https://community.hivepress.io/t/how-to-add-custom-badges-to-the-new-badges-extension/17872 "2026-07-30T19:59:53Z")

</div>

Hey, I haven’t had a proper look through the new Badges extension yet, but no doubt someone in the community (or myself!) will want to add in some custom badges soon. Are there any recommended hooks, actions, or documen…

---

## [How can I set a default membership plan during registration?](https://community.hivepress.io/t/how-can-i-set-a-default-membership-plan-during-registration/11961)

<div class="topic-metadata">

**Author:** [@arry](https://community.hivepress.io/u/arry)\
**Replies:** 9\
**Last updated:** [July 29, 2026, 10:47am UTC](https://community.hivepress.io/t/how-can-i-set-a-default-membership-plan-during-registration/11961 "2026-07-29T10:47:18Z")

</div>

I want all users who sign up through the popup to be automatically assigned to a default free membership plan. How can I implement this?

---

## [How to customize Post a Request form](https://community.hivepress.io/t/how-to-customize-post-a-request-form/17862)

<div class="topic-metadata">

**Author:** [@Matshaka](https://community.hivepress.io/u/Matshaka)\
**Replies:** 3\
**Last updated:** [July 28, 2026, 1:45pm UTC](https://community.hivepress.io/t/how-to-customize-post-a-request-form/17862 "2026-07-28T13:45:09Z")

</div>

I am currently customizing the request submission workflow on my website (batsira.com). My goal is to completely remove the default core fields (Budget, Title, Description, Location, and Images) from the “Add Details” st…

---

## [Add custom condition to the listing flow](https://community.hivepress.io/t/add-custom-condition-to-the-listing-flow/17859)

<div class="topic-metadata">

**Author:** [@shayanreyes](https://community.hivepress.io/u/shayanreyes)\
**Replies:** 1\
**Last updated:** [July 24, 2026, 3:34pm UTC](https://community.hivepress.io/t/add-custom-condition-to-the-listing-flow/17859 "2026-07-24T15:34:23Z")

</div>

Hi, I know native KYC integration is still on the roadmap (referencing this thread). In the meantime I already have manual document verification working via a custom Attachment attribute + admin review. What I need is t…

---

## [How to stop some specific published listings from being listed?](https://community.hivepress.io/t/how-to-stop-some-specific-published-listings-from-being-listed/17844)

<div class="topic-metadata">

**Author:** [@hamid](https://community.hivepress.io/u/hamid)\
**Replies:** 14\
**Last updated:** [July 23, 2026, 12:25pm UTC](https://community.hivepress.io/t/how-to-stop-some-specific-published-listings-from-being-listed/17844 "2026-07-23T12:25:22Z")

</div>

I wanna prevent a publically published Ad from being listed in the main listing page, while at the same time, anyone can view it through the permalink (e.g. http://mydomain.com/listing/xxx). I wanna select such listing …

---

## [Displaying the seller's attribute if they don't pay for their membership](https://community.hivepress.io/t/displaying-the-sellers-attribute-if-they-dont-pay-for-their-membership/17853)

<div class="topic-metadata">

**Author:** [@Alica](https://community.hivepress.io/u/Alica)\
**Replies:** 2\
**Last updated:** [July 21, 2026, 4:44pm UTC](https://community.hivepress.io/t/displaying-the-sellers-attribute-if-they-dont-pay-for-their-membership/17853 "2026-07-21T16:44:21Z")

</div>

Hello, I would like to ask for help with creating a code that I will insert into a code snippet for this function or situation. I have a paid seller who renews his membership every month. In the attributes I have a con…

---

## [\[How-To\] CSS-Only Horizontal Scroll for HivePress Grids on Mobile](https://community.hivepress.io/t/how-to-css-only-horizontal-scroll-for-hivepress-grids-on-mobile/17839)

<div class="topic-metadata">

**Author:** [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Replies:** 4\
**Last updated:** [July 16, 2026, 9:14pm UTC](https://community.hivepress.io/t/how-to-css-only-horizontal-scroll-for-hivepress-grids-on-mobile/17839 "2026-07-16T21:14:59Z")

</div>

Hey @everyone, I just wanted to share a cool snippet with the community that I came up with using AI, which cleanly rearranges HivePress grids into horizontal touch/scroll-based rows. It frees up a ton of page space, s…

---

## [Permalinks: How to remove "listing-category" and "listing" from permanent links?](https://community.hivepress.io/t/permalinks-how-to-remove-listing-category-and-listing-from-permanent-links/17834)

<div class="topic-metadata">

**Author:** [@obtrusive170](https://community.hivepress.io/u/obtrusive170)\
**Replies:** 5\
**Last updated:** [July 15, 2026, 4:11pm UTC](https://community.hivepress.io/t/permalinks-how-to-remove-listing-category-and-listing-from-permanent-links/17834 "2026-07-15T16:11:54Z")

</div>

HivePress default free plugin template results in a following URL scheme, which i would like to change as shown: /listing-category/categorynamehere/ → /categorynamehere/ /listing/abc-def/ → /categorynameh…

---

## ['Clear filters' button](https://community.hivepress.io/t/clear-filters-button/16408)

<div class="topic-metadata">

**Author:** [@carcraze](https://community.hivepress.io/u/carcraze)\
**Replies:** 5\
**Last updated:** [July 13, 2026, 10:30pm UTC](https://community.hivepress.io/t/clear-filters-button/16408 "2026-07-13T22:30:46Z")

</div>

Can we implement clear filters button. @andrii and team, could you please provide with a code snippet for that purpose. Thanks and regards, Carcraze

---

## [Visual display between root categories and subcategories](https://community.hivepress.io/t/visual-display-between-root-categories-and-subcategories/17788)

<div class="topic-metadata">

**Author:** [@issufebalde25-ui](https://community.hivepress.io/u/issufebalde25-ui)\
**Replies:** 5\
**Last updated:** [July 12, 2026, 9:29pm UTC](https://community.hivepress.io/t/visual-display-between-root-categories-and-subcategories/17788 "2026-07-12T21:29:59Z")

</div>

Hi, I need help differentiating the visual display between root categories and subcategories specifically on the /submit-listing/category/ page only — not on listing archives, homepage, or any other page. MY SETUP: W…

---

## [Any antibot challenge that does not rely on a third party server?](https://community.hivepress.io/t/any-antibot-challenge-that-does-not-rely-on-a-third-party-server/17770)

<div class="topic-metadata">

**Author:** [@obtrusive170](https://community.hivepress.io/u/obtrusive170)\
**Replies:** 9\
**Last updated:** [July 7, 2026, 2:40pm UTC](https://community.hivepress.io/t/any-antibot-challenge-that-does-not-rely-on-a-third-party-server/17770 "2026-07-07T14:40:59Z")

</div>

Hello, is anyone using antibot challenge that does not rely on recaptcha or similar spyware? I have tried to ask HivePress AI and Lumo, but both gives non working code which does not report error and avoids registration…

---

## [Images/attachments uploads immediately applied before moderation when editing listing](https://community.hivepress.io/t/images-attachments-uploads-immediately-applied-before-moderation-when-editing-listing/17802)

<div class="topic-metadata">

**Author:** [@MarkW](https://community.hivepress.io/u/MarkW)\
**Replies:** 5\
**Last updated:** [July 7, 2026, 11:50am UTC](https://community.hivepress.io/t/images-attachments-uploads-immediately-applied-before-moderation-when-editing-listing/17802 "2026-07-07T11:50:44Z")

</div>

Hi, I am using the following code to send all edited listings to Pending upon clicking “Save Changes”: add\_filter( 'hivepress/v1/forms/listing\_update', function( $form ) { $form\['fields'\]\['location'\]\['\_moderated'…

---

## [Change number of columns on listings page?](https://community.hivepress.io/t/change-number-of-columns-on-listings-page/17828)

<div class="topic-metadata">

**Author:** [@Knode](https://community.hivepress.io/u/Knode)\
**Replies:** 2\
**Last updated:** [July 6, 2026, 11:27pm UTC](https://community.hivepress.io/t/change-number-of-columns-on-listings-page/17828 "2026-07-06T23:27:47Z")

</div>

The default shows two columns. Am I able to increase this to 4 on the listings page, or is this only available when adding the listings block to a regular page?

---

## [Help me use my own messages for form field validation instead of browsers’](https://community.hivepress.io/t/help-me-use-my-own-messages-for-form-field-validation-instead-of-browsers/17798)

<div class="topic-metadata">

**Author:** [@hamid](https://community.hivepress.io/u/hamid)\
**Replies:** 5\
**Last updated:** [July 6, 2026, 3:27pm UTC](https://community.hivepress.io/t/help-me-use-my-own-messages-for-form-field-validation-instead-of-browsers/17798 "2026-07-06T15:27:05Z")

</div>

As I checked, when submitting a new Listing or updating one, Firefox doesn’t show the messages of fields validation on Android phones! So I want to completely disable browser validation of form fields and use my own mes…

---

## [Snippet required for reviews with booking completed (no payment performed)](https://community.hivepress.io/t/snippet-required-for-reviews-with-booking-completed-no-payment-performed/17808)

<div class="topic-metadata">

**Author:** [@giuliana](https://community.hivepress.io/u/giuliana)\
**Replies:** 2\
**Last updated:** [July 4, 2026, 7:08pm UTC](https://community.hivepress.io/t/snippet-required-for-reviews-with-booking-completed-no-payment-performed/17808 "2026-07-04T19:08:46Z")

</div>

I would to like to enable reviews for users who have a confirmed booking request (without online payments), how to do this? Is it possible to allow to leave a review after the booking has been completed (without payment…

---

## [Hide Primary Attributes container if optional attributes are left unfilled](https://community.hivepress.io/t/hide-primary-attributes-container-if-optional-attributes-are-left-unfilled/17803)

<div class="topic-metadata">

**Author:** [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Replies:** 1\
**Last updated:** [July 3, 2026, 3:13pm UTC](https://community.hivepress.io/t/hide-primary-attributes-container-if-optional-attributes-are-left-unfilled/17803 "2026-07-03T15:13:29Z")

</div>

Hey @everyone, I’m using the Primary Attribute section to display various attributes that I’ve marked as optional. However, I noticed that if a user doesn’t complete any of these optional fields, the parent container st…

---

## [How to display location field only in the search form](https://community.hivepress.io/t/how-to-display-location-field-only-in-the-search-form/17797)

<div class="topic-metadata">

**Author:** [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Replies:** 4\
**Last updated:** [July 2, 2026, 12:30pm UTC](https://community.hivepress.io/t/how-to-display-location-field-only-in-the-search-form/17797 "2026-07-02T12:30:12Z")

</div>

Hey, Forgive me if this already exists and I’ve just overlooked it, but I’d like to request a new ‘Search by Location (only)’ block that would be available to choose in Gutenberg when we’re designing a page. The block w…

---

## [Individual users should bypass membership requirement - need code snippet](https://community.hivepress.io/t/individual-users-should-bypass-membership-requirement-need-code-snippet/17780)

<div class="topic-metadata">

**Author:** [@alevtina](https://community.hivepress.io/u/alevtina)\
**Replies:** 7\
**Last updated:** [June 26, 2026, 8:06am UTC](https://community.hivepress.io/t/individual-users-should-bypass-membership-requirement-need-code-snippet/17780 "2026-06-26T08:06:08Z")

</div>

Hello, I have a marketplace site built with HivePress + Memberships plugin. My setup: I created a user attribute called “Account Type” (field name: hesap\_turu) with two options: bireysel (individual) and kurumsal (b…

---

## [Requests not getting published — issue with custom redirect code](https://community.hivepress.io/t/requests-not-getting-published-issue-with-custom-redirect-code/17768)

<div class="topic-metadata">

**Author:** [@alexandre.azra](https://community.hivepress.io/u/alexandre.azra)\
**Replies:** 5\
**Last updated:** [June 24, 2026, 5:45pm UTC](https://community.hivepress.io/t/requests-not-getting-published-issue-with-custom-redirect-code/17768 "2026-06-24T17:45:16Z")

</div>

Hello, I’m experiencing an issue where requests are not being published on my website. When users click the “Submit request” button, I have added a custom snippet so the page redirects to a custom URL, but the request i…

---

## [Turnstile for HivePress](https://community.hivepress.io/t/turnstile-for-hivepress/17776)

<div class="topic-metadata">

**Author:** [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Replies:** 0\
**Last updated:** [June 20, 2026, 3:54pm UTC](https://community.hivepress.io/t/turnstile-for-hivepress/17776 "2026-06-20T15:54:20Z")

</div>

Hey @everyone, I’ve been looking into Google reCAPTCHA alternatives to fight bots and noticed Cloudflare Turnstile is highly recommended. I found this great plugin to implement it: Simple CAPTCHA with Cloudflare Turns…

---

## [Move tag description to footer](https://community.hivepress.io/t/move-tag-description-to-footer/17760)

<div class="topic-metadata">

**Author:** [@anastasia](https://community.hivepress.io/u/anastasia)\
**Replies:** 2\
**Last updated:** [June 12, 2026, 4:49pm UTC](https://community.hivepress.io/t/move-tag-description-to-footer/17760 "2026-06-12T16:49:03Z")

</div>

Hello, I’m using TaskHive Marketplace and I need to move the tag description from the page content area to the footer (like it works for categories). What I’ve done: Successfully moved category descriptions to footer…

---

## [How to ask captcha upon submitting a review](https://community.hivepress.io/t/how-to-ask-captcha-upon-submitting-a-review/17751)

<div class="topic-metadata">

**Author:** [@obtrusive170](https://community.hivepress.io/u/obtrusive170)\
**Replies:** 1\
**Last updated:** [June 11, 2026, 6:01pm UTC](https://community.hivepress.io/t/how-to-ask-captcha-upon-submitting-a-review/17751 "2026-06-11T18:01:43Z")

</div>

Registration form can be protected with hCaptha (HivePress supports only non-private Google spyware reCaptcha), but review form does not work for me to show hcaptcha. I have tried multiple snippets from HivePress AI, wh…

---

## [Hiding filter sidebar in favor of more listings columns at /listings/](https://community.hivepress.io/t/hiding-filter-sidebar-in-favor-of-more-listings-columns-at-listings/17747)

<div class="topic-metadata">

**Author:** [@obtrusive170](https://community.hivepress.io/u/obtrusive170)\
**Replies:** 1\
**Last updated:** [June 9, 2026, 9:10am UTC](https://community.hivepress.io/t/hiding-filter-sidebar-in-favor-of-more-listings-columns-at-listings/17747 "2026-06-09T09:10:45Z")

</div>

Continuing the discussion from Search results shows all categories listings not just mine selected category where i prefer to do category selection(filtering) using drop-down menu in the search bar of a /listings/ page …

---

## [Account page links randomly redirect the user to be signed out \[Bluehost\]](https://community.hivepress.io/t/account-page-links-randomly-redirect-the-user-to-be-signed-out-bluehost/17706)

<div class="topic-metadata">

**Author:** [@travisdee95](https://community.hivepress.io/u/travisdee95)\
**Replies:** 21\
**Last updated:** [June 5, 2026, 5:22pm UTC](https://community.hivepress.io/t/account-page-links-randomly-redirect-the-user-to-be-signed-out-bluehost/17706 "2026-06-05T17:22:47Z")

</div>

Describe the issue in as much detail as possible. Please remove the sections below if the issue is obvious enough and doesn’t require extra details. Steps to reproduce Create an account, confirm email and sign in. Go bo…

[Next page](https://community.hivepress.io/tag/code/28.md?match_all_tags=true&page=1&tags%5B%5D=code)
