Sida Loogu Daro Shortcodes Gaar ah Page Builder Sandwich

Waxaa qoray

ku jira

From the word itself, the word shortcode means exactly that: A short code; a shortcut code.

Shortcodes waxay kuu oggolaanayaan inaad waxyaabo ku darto mareegtaada (sida widgets-ka, tusaale ahaan), adigoon u baahnayn inaad ku darto qaybo waaweyn oo koodh ah sida soosaarayaashu caadiyan u sameeyaan.

Tusaale ahaan, koodh caadi ah marka loo eego dhererka, wuxuu u badan tahay inuu u ekaan doono wax sidan oo kale ah:

<html>Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Etiam id aliquam turpis. Vivamus quis arcu tincidunt, finibus urna eget, placerat risus.

Aliquam arcu massa, finibus et lacinia sed, scelerisque nec augue. Quisque eu viverra sapien, vel consequat lorem. Integer vel erat tortor.

Phasellus condimentum magna eget congue venenatis. Suspendisse blandit vehicula consectetur.

Nullam sodales eleifend massa, in bibendum purus fermentum id.

Morbi et turpis feugiat, malesuada ipsum sit amet, interdum nulla. In non ante nec nisl mattis gravida sit amet id lectus.

</html>​

Tusaalahan, aan iska dhigno in koodhka kore uu kuu oggolaanayo inaad ku darto cutub dhan oo qoraalka buuxiyaha ah ee Lorem Ipsum.

Now, a shortcode with the same exact function as the code above will look something like this, in contrast:

[lorem ipsum dolor estat]Lorem Ipsum[/lorem]​

You can see how they’re miles different from each other in terms of length.

Hadda qiyaas in labada qaybood ee koodhka ah– Qaybta asalka ah, ee dheer, iyo shortcode-ka ay ku jirto ereyga “lorem” oo keliya, ay labaduba samayn doonaan isla hal shay: Ku darista qoraalka Lorem Ipsum.

This is what shortcodes do. They make adding widgets, functions, and a bunch of other cool stuff easier for both ordinary WordPress users and developers alike.

Where can I find shortcodes?

Haddii aad leedahay furin (plugin) ama widget aad jeceshahay, waxay u badan tahay inay leeyihiin shortcode diyaar kuu ah inaad isticmaasho.

Shortcodes Ultimate, for example, will let you choose from hundreds of shortcodes that you can use on Page Builder Sandwich (or anywhere, actually) by simply grabbing the shortcode of your choice from Shortcode Ultimate’s repository or documentation page.

Adding Custom Shortcodes on PBS

Xagga Page Builder Sandwich, waxaad shortcodes si toos ah ugu dari kartaa boggaaga adigoo si fudud u qoraya ama koobiyeynaya oo ku dhajinaya aagga nuxurkaaga.

Waxaan tan hoos ku samaynay shortcode ka socota Shortcodes Ultimate, annagoo sanduuq nuxur ah ku darnay bogga tijaabada ee Page Builder Sandwich:

Another thing you’ll find handy when using Page Builder Sandwich is our Shortcode Mapping feature.

Mid ka mid ah maqaalladayadii hore ee ku saabsanaa Khariidaynta Shortcode, qeexitaanku waa sida soo socota:

Shortcode mapping is like letting Page Builder Sandwich memorize all the shortcodes available on your site: their names, descriptions, their attributes, and what each of these attributes do.

Qayb ka mid ah tan waxay la macno tahay inaanad hadda kaddib u baahnayn inaad gacanta kaga raadiso shortcodes-kaaga dukumiintiyadooda ama kaydadkooda u gaarka ah.

Ilaa inta aad haysato furinka (plugin) ay ku jirto shortcode-ka oo ku rakiban boggaaga WordPress, waxay si sahlan diyaar kuugu noqon doontaa inaad ku isticmaasho Page Builder Sandwich.

So for example, if I wanted to add a WooCommerce shortcode on my page, all I have to do is make sure that it’s installed on my WordPress site, like so:

And then, to actually add the shortcode, I’ll just go to my page, and drag and drop the Shortcode Element:

Because we already have WooCommerce installed on our WordPress site, you can see that all of the shortcodes that are available on the WooCommerce plugin are already available on Page Builder Sandwich. This is what Shortcode Mapping is.

You can also see on the upper left corner that the ACF (Advanced Custom Fields) and MailChimp shortcodes are available– because we have those instlled on our WordPress site, too.

Markaa haddii aad rabto inaad ku darto shortcodes gaar ah, ama shortcodes aad adigu samaysatay, waad awoodaa, ilaa inta aad ku rakibtay boggaaga WordPress.

Here are some other helpful plugins that you can use to create your own custom shortcodes: