दान संबंधी दस्तावेज़ीकरण

स्पष्ट, चरण-दर-चरण निर्देशों के साथ दान संबंधी का अधिकतम लाभ उठाना सीखें।

Disable the Auto-Created Single Campaign Page

When you create a campaign in Charitable, WordPress automatically gives it its own public URL at /campaigns/[campaign-slug]/. That happens because Charitable registers campaigns as a public custom post type, which is what allows search engines and direct links to reach a campaign’s own page.

That works well if you want every campaign to have its own landing page. But if you only want donors to reach your campaign through a specific page on your site, for example a single /donate/ page where you’ve embedded the campaign with the shortcode or block, the auto-created URL becomes a second, unwanted entry point.

This page covers two ways to remove that entry point. Both options leave your campaign embed working exactly as before, because the embed reads the campaign record directly from the database. It does not rely on the single campaign URL being publicly accessible.

When you’d use this

  • You embed your campaign on a dedicated donate page and want that to be the only place donors land.
  • A campaign URL is showing up in search results or being shared, and you want to send those visitors to your donate page instead.
  • You only run one campaign at a time and the single-campaign URL is redundant.

Why the URL exists in the first place

Charitable registers campaign as a WordPress custom post type with public => true and publicly_queryable => true. Those two flags are what tell WordPress to generate a URL for each campaign and serve it through the single-post template.

The URL pattern is [your-permalink-front]/campaigns/[campaign-slug]/. If your WordPress permalink structure has a front, for example /news/%postname%/, the campaign URL becomes /news/campaigns/[campaign-slug]/. That’s standard WordPress behavior, not a Charitable setting.

There’s no built-in toggle in the Charitable settings to disable the single campaign URL. The two snippets below are the supported ways to turn it off.

Option 1: Redirect single campaign URLs to your donate page (recommended)

This is the option to choose if there’s any chance a campaign URL has already been shared, indexed, or linked from elsewhere. Visitors who land on the campaign URL get sent to your donate page with a 301 redirect, which search engines respect over time.

Add this snippet using a code snippets plugin (such as WPCode) or your child theme’s functions.php:

add_action( 'template_redirect', function() {
    if ( is_singular( 'campaign' ) ) {
        wp_safe_redirect( home_url( '/donate/' ), 301 );
        exit;
    }
} );

Change /donate/ to whatever URL you want to send visitors to. After saving the snippet, open your campaign’s URL in a private browser window to confirm it now lands on your donate page.

Option 2: Make the campaign post type non-public

This option turns off the single campaign URL entirely. Anyone visiting /campaigns/[slug]/ will see a standard WordPress 404. Use this if you’d rather the URL not exist at all than redirect.

Add this snippet using a code snippets plugin or your child theme’s functions.php:

add_filter( 'charitable_campaign_post_type', function( $args ) {
    $args['public']              = false;
    $args['publicly_queryable']  = false;
    $args['exclude_from_search'] = true;
    return $args;
} );

After adding the snippet, flush your permalinks: go to Settings > Permalinks in your WordPress admin and click Save Changes. You don’t need to change anything on that screen. The act of saving regenerates the rewrite rules so the campaign URL stops resolving.

What happens to the campaign embed

Both options leave the campaign embed untouched:

  • The [charitable_campaign] shortcode keeps rendering on your donate page.
  • The Charitable campaign block keeps rendering on your donate page.
  • The campaign’s title, story, goal, and donation form all keep loading.
  • New donations still attach to the campaign and update its progress.

The embed reads the campaign post directly by ID, so it doesn’t matter whether the campaign’s own URL is public, redirected, or returning a 404.

Which option should you pick?

Use Option 1 (redirect) if…Use Option 2 (non-public) if…
A campaign URL might already be shared, indexed, or linked from somewhere.The campaign URL has never been shared and isn’t in search results.
You want a graceful handoff for any visitor who finds the old URL.You’d prefer the URL not to resolve at all.
You want search engines to follow the 301 and drop the old URL over time.You don’t care about preserving the URL’s search presence.

In most cases, Option 1 is the safer choice because it handles both new visitors and anyone who already has the URL.

Frequently asked questions

Will this affect how donations are tracked?

No. Donations are attached to the campaign record itself, not the URL. Whether someone donates through your embedded form on /donate/ or (before the redirect) the auto-created campaign page, the donation lands on the same campaign and counts toward the same goal.

Does this remove the campaign from the WordPress admin?

No. The campaign still shows up in Charitable > Campaigns in your admin. You can edit it, archive it, see its donations, and so on. Only the public URL changes.

Can I do this for one campaign but not others?

Yes – narrow the redirect by checking the specific campaign ID:

add_action( 'template_redirect', function() {
    if ( is_singular( 'campaign' ) && get_queried_object_id() === 123 ) {
        wp_safe_redirect( home_url( '/donate/' ), 301 );
        exit;
    }
} );

Replace 123 with the ID of the campaign you want to redirect. Other campaigns will continue to use their normal URLs. (Option 2 is all-or-nothing because it changes the post type registration.)

What about the campaign archive page?

Charitable already has the campaign archive turned off (has_archive => false), so visiting /campaigns/ on its own doesn’t render a Charitable archive. You don’t need to do anything extra to disable it.


Developer reference

The rest of this page is for developers who want more control over the campaign post type registration.

The filter

charitable_campaign_post_type runs on init (priority 5) just before register_post_type() is called. It receives the full arguments array used to register the campaign post type, so you can change any of these:

Argumentडिफ़ॉल्टप्रभाव
publicसत्यMaster switch for front-end visibility and admin UI.
publicly_queryableसत्यWhether /campaigns/[slug]/resolves to a single template.
exclude_from_searchfalseWhether /?s= searches include campaigns.
has_archivefalseThe campaign archive is already off by default.
rewritearray( 'slug' => 'campaigns', 'with_front' => true )The URL slug for single campaigns.
show_in_nav_menusसत्यWhether campaigns can be added to nav menus from Appearance > Menus.

Changing the URL slug instead of disabling it

If you’d rather keep the single campaign page but change its URL prefix, filter the rewrite slug. For example, to change /campaigns/[slug]/ to /fundraise/[slug]/:

add_filter( 'charitable_campaign_post_type', function( $args ) {
    $args['rewrite']['slug'] = 'fundraise';
    return $args;
} );

Flush permalinks after the change (Settings > Permalinks > Save Changes).

Why with_front matters

The default 'with_front' => true means WordPress prepends your permalink front to the campaign URL. If your WordPress permalink structure is /news/%postname%/, your campaign URLs will be /news/campaigns/[slug]/. Set 'with_front' => false to ignore the permalink front:

add_filter( 'charitable_campaign_post_type', function( $args ) {
    $args['rewrite']['with_front'] = false;
    return $args;
} );

Flush permalinks after the change.

How the embed keeps working

The [charitable_campaign] shortcode and the campaign block both resolve to Charitable_Campaign queries that load the post by ID. Those queries use get_post() and direct meta lookups, which are independent of the public and publicly_queryable flags. The flags only control whether the WordPress front-end controller will route a request to the single campaign template. Disabling them does not block PHP code from reading the post.

Hook reference

Hookप्रकारUse it to
charitable_campaign_post_typeफ़िल्टरModify the arguments passed to register_post_type() for campaigns. Runs on init priority 5.
template_redirectकार्रवाईFire your redirect after WordPress has parsed the request and chosen a template, but before the template is loaded. Standard WordPress hook.
is_singular( 'campaign' )ConditionalTrue when the current request is a single campaign URL. Use it inside template_redirect to scope the redirect.

अभी भी प्रश्न हैं? हम मदद के लिए यहाँ हैं!

अंतिम बार संशोधित:

चैरिटेबल में नया क्या है

नवीनतम अपडेट देखें
🔔 हमारे नवीनतम अपडेट प्राप्त करने के लिए सदस्यता लें
📧 ईमेल के लिए सदस्यता लें

ईमेल सदस्यता

हमारे न्यूज़लेटर में शामिल हों

हम आपको स्पैम नहीं भेजेंगे। हम केवल तभी ईमेल भेजते हैं जब हमें लगता है कि यह वास्तव में आपकी मदद करेगा। आप किसी भी समय सदस्यता समाप्त कर सकते हैं!

गिवडब्ल्यूपी माइग्रेशन नया

GiveWP के लिए व्हाइट ग्लोव माइग्रेशन सेवा

अपने फ़ंडरेज़िंग प्लेटफ़ॉर्म को GiveWP से Charitable पर स्विच करने के बारे में सोच रहे हैं, लेकिन अपना डेटा खोने का जोखिम नहीं उठाना चाहते या स्वयं एक जटिल तकनीकी सेटअप को संभालना नहीं चाहते? Charitable की व्हाइट ग्लोव माइग्रेशन सेवा में शामिल हैं:

👥 निर्दोष डोनर मैपिंग: शून्य डेटा हानि के साथ अपने पूरे समर्थक डेटाबेस को सुरक्षित रूप से स्थानांतरित करें।

📊 पूर्ण वित्तीय इतिहास: निरंतर, सटीक रिपोर्टिंग के लिए हर ऐतिहासिक लेनदेन को सावधानीपूर्वक संरक्षित करें।

🔄 निर्बाध आवर्ती दान: अपने आने वाले राजस्व को बाधित किए बिना या अपने दाताओं को अपनी जानकारी अपडेट करने की आवश्यकता के बिना सक्रिय स्थायी सब्सक्रिप्शन को सुरक्षित रूप से स्थानांतरित करें।

💳 शून्य गेटवे व्यवधान: स्ट्राइप, पेपाल, या किसी अन्य GiveWP-संगत प्रोसेसर का उपयोग करना जारी रखें जिसे आप पहले से ही पसंद करते हैं।

🚀 विशेषज्ञ तकनीकी सेटअप: जब हमारी टीम आपके फ़ॉर्म को इंस्टॉल और कॉन्फ़िगर करने का भारी काम संभालती है तो आराम करें—साथ ही, योग्य उपयोगकर्ताओं को Charitable Pro का पूरा साल पूरी तरह से मुफ़्त मिलता है।

अधिक जानने के लिए इस पृष्ठ पर जाएँ

ऑटोमेशन सुधार

📢 नई सुविधा अलर्ट: ऑटोमेशन कनेक्ट 2.0 यहाँ है! 🚀

अपने फ़ंडरेज़िंग डेटा को Mailchimp, Slack, या Google Sheets जैसे टूल से जोड़ने के बारे में सोच रहे हैं, लेकिन डेवलपर को काम पर नहीं रखना चाहते या कस्टम कोड नहीं लिखना चाहते? Charitable के नए ऑटोमेशन ऐडऑन में है:

⚡ 17 इवेंट ट्रिगर: डोनर के पहले उपहार, नवीनीकरण भुगतान, या अभियान मील के पत्थर तक पहुंचने के लिए तुरंत वेबहुक फायर करें।

🎯 स्मार्ट कंडीशनल लॉजिक: केवल तभी डेटा भेजने के लिए 11 फ़ील्ड में शक्तिशाली AND/OR लॉजिक का उपयोग करें जब यह आपकी सटीक शर्तों को पूरा करता हो, जैसे न्यूज़लेटर ऑप्ट-इन।

📊 कस्टम पेलोड नियंत्रण: डोनर, दान और अभियान मेटाडेटा में 80+ क्लीन डेटा फ़ील्ड में से चुनें ताकि आपके ऐप्स को वही मिले जिसकी उन्हें आवश्यकता है।

🚀 प्री-बिल्ट प्लेटफ़ॉर्म टेम्प्लेट: Zapier, Make.com, n8n, HubSpot, और Slack के लिए तैयार टेम्प्लेट के साथ स्क्रैच से सेटअप छोड़ें।

🛡️ विश्वसनीय डेवलपर टूल: हस्ताक्षरित HMAC-SHA256 पेलोड, पूर्ण वर्डप्रेस फ़िल्टर और स्वचालित पुनः प्रयास लॉग के साथ अपने वर्कफ़्लो को पावर दें।

ऑटोमेशन सुधार

🔌 चैरिटेबल ज़ैपियर से जुड़ता है: 7,000+ ऐप्स से कनेक्ट करें और अपने धन उगाहने को स्वचालित करें

दान डेटा को मैन्युअल रूप से अकाउंटिंग शीट में कॉपी करने या नए दाता साइनअप को ट्रैक करने से थक गए हैं? अपने प्रशासनिक कार्यों को ऑटोपायलट पर रखें। चैरिटेबल अब आधिकारिक तौर पर ज़ैपियर पर है, जो आपको अपने धन उगाहने को सीधे अपने पसंदीदा टूल के बाकी हिस्सों में प्लग करने का एक शक्तिशाली, नो-कोड तरीका प्रदान करता है।

हर दान, दाता साइनअप, और अभियान मील का पत्थर अब निर्बाध रूप से एक स्वचालित वर्कफ़्लो को ट्रिगर कर सकता है।

नई क्या है:

♾️ 7,000+ ऐप्स से कनेक्ट करें: अपने चैरिटेबल अभियानों को Google Sheets, QuickBooks, Slack, Mailchimp, HubSpot, Notion, Airtable, और हजारों अन्य जैसे रोजमर्रा के सॉफ़्टवेयर के साथ ब्रिज करें।

⚡ 12 शक्तिशाली ट्रिगर: संपूर्ण दान जीवनचक्र को कवर करने वाले स्मार्ट ऑटोमेशन ट्रिगर का उपयोग करके गहन वर्कफ़्लो बनाएं—जिसमें नया दान, नया दाता, सदस्यता रद्द, और अभियान लक्ष्य तक पहुंचना शामिल है।

📋 पूर्व-निर्मित एक्शन टेम्प्लेट: हमारे पूर्व-निर्मित टेम्प्लेट संयोजनों के साथ तीन मिनट या उससे कम समय में शुरुआत करें, जैसे कि Google शीट में सीधे नए दान लॉग करना या Gmail के माध्यम से कस्टम दाता स्वागत ईमेल भेजना।

🚫 किसी कोड की आवश्यकता नहीं: किसी जटिल वेबहुक या कस्टम PHP स्क्रिप्ट की आवश्यकता नहीं है। बस अपना ट्रिगर चुनें, अपना ऐप चुनें, अपने फ़ील्ड मैप करें, और ज़ैपियर को भारी काम करने दें।

एडमिन समय के घंटों को बचाने के लिए तैयार हैं? आज ही ऑटोमेशन कनेक्ट एडऑन के साथ चैरिटेबल प्रो प्राप्त करें और अपना पहला ज़ैप लॉन्च करें!

सुधार भुगतान

🚀 पेपैल कॉमर्स का परिचय: एक कनेक्शन, दान करने के छह तरीके

दानकर्ता जब किसी कारण का समर्थन करते हैं तो आधुनिक, लचीले भुगतान विकल्पों की उम्मीद करते हैं। यदि वे आपके दान फ़ॉर्म पर अपनी पसंदीदा विधि नहीं देखते हैं, तो वे अक्सर बिना कुछ कहे चले जाते हैं। पेपैल कॉमर्स के साथ, हम आपके अभियानों में एक पूरी तरह से आधुनिक चेकआउट अनुभव ला रहे हैं।

एक एकल एकीकरण का आनंद लें जो आपके फ़ॉर्म को अपग्रेड करता है, दान को निर्बाध बनाता है, और आपको हर एक दान को कैप्चर करने में मदद करता है।

नई क्या है:

🔌 एक-क्लिक कनेक्शन: गंदे एपीआई कुंजी और डेवलपर दस्तावेज़ों को छोड़ें। बस "पेपैल से कनेक्ट करें" पर क्लिक करें, अपने व्यवसाय खाते में साइन इन करें, और आपका आधुनिक फ़ॉर्म पांच मिनट से भी कम समय में लाइव हो जाएगा।

💳 देने के छह तरीके: अपने समर्थकों को पेपैल बैलेंस, वेन्मो (यूएस), पे लेटर फाइनेंसिंग, प्रमुख क्रेडिट/डेबिट कार्ड, एप्पल पे (सफारी), और गूगल पे (क्रोम) सभी एक ही फ़ॉर्म से तुरंत एक्सेस दें।

🔄 लचीला आवर्ती दान: मासिक दान का पूरी तरह से समर्थन करता है। पेपैल सब्सक्रिप्शन एपीआई (पेपैल के अंत में स्वचालित रूप से संभाला जाता है) या वॉल्ट + क्रॉन (सीधे आपकी साइट पर सुरक्षित रूप से संभाला जाता है) के बीच चयन करें।

💬 अनुकूल त्रुटि रिकवरी: कोई और भ्रमित करने वाले ब्राउज़र अलर्ट नहीं। यदि कोई भुगतान अस्वीकृत हो जाता है, तो दानकर्ताओं को सादे-भाषा, इनलाइन संदेश दिखाई देते हैं जो उन्हें समस्या को ठीक करने और अपना उपहार पूरा करने के तरीके के बारे में मार्गदर्शन करते हैं।

पेपैल के लिए तैयार हैं, आधुनिक? चैरिटेबल प्रो 1.8.15+ (या चैरिटेबल लाइट 1.8.11+) में अपडेट करें और आज ही अपना खाता कनेक्ट करें!

अभियान नया

⏳ अभियान काउंटडाउन: तात्कालिकता को बढ़ाएं और दान बढ़ाएं

तात्कालिकता धन उगाहने वाले सबसे शक्तिशाली उपकरणों में से एक है! अभियान काउंटडाउन से मिलें—एक लाइव, वास्तविक समय टाइमर जो टालमटोल को तत्काल उदारता में बदलने के लिए बनाया गया है।

अभियान_काउंटडाउन_एनीमेशन

नई क्या है:

⏱️ लाइव, रियल-टाइम तात्कालिकता: लाइव-अपडेटिंग विज़ुअल काउंटडाउन के साथ अपने अभियान की समय सीमा तक दिनों, घंटों, मिनटों और सेकंडों को खूबसूरती से ट्रैक करें।

🎨 आपके लुक के अनुरूप: बॉक्स्ड बॉर्डर्ड टाइल्स या एक साफ, सिंगल-लाइन इनलाइन डिस्प्ले के बीच चुनें। फ़ॉन्ट और डीप कलर कंट्रोल्स के साथ तुरंत अपने थीम से मिलान करें।

🛠️ कहीं भी रखें: कैंपेन बिल्डर फ़ील्ड, एक समर्पित गुटेनबर्ग ब्लॉक, या एक साधारण शॉर्टकोड का उपयोग करके कहीं भी काउंटडाउन ड्रॉप करें।

🚨 स्मार्ट समाप्ति क्रियाएं: अंतिम स्थिति पर पूर्ण नियंत्रण—टाइमर को स्वचालित रूप से एक कस्टम संदेश से बदलने, इसे शून्य पर फ्रीज करने और बहुत कुछ करने के लिए चुनें।