{"id":47575,"date":"2022-03-07T07:41:47","date_gmt":"2022-03-07T07:41:47","guid":{"rendered":"\/tutorials\/?p=47575"},"modified":"2026-11-05T09:25:31","modified_gmt":"2026-11-05T09:25:31","slug":"create-a-shortcode-in-wordpress","status":"publish","type":"post","link":"\/tutorials\/create-a-shortcode-in-wordpress\/","title":{"rendered":"How to create a shortcode in WordPress (in 7 steps)"},"content":{"rendered":"<p class=\"wp-block-paragraph\">To create a shortcode in WordPress, write a PHP callback function and register it with <code>add_shortcode()<\/code>. You can then insert the shortcode, such as<code>[subscribe]<\/code>, into a post or page using the Shortcode block.<\/p><p class=\"wp-block-paragraph\">In this tutorial, you&rsquo;ll store the code safely in a child theme, create and test a basic shortcode, add attributes, and turn it into an enclosing shortcode with custom link text. You&rsquo;ll also see when shortcode functionality is better moved to a custom plugin.<\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading h-t-title-2\" id=\"h-what-are-wordpress-shortcodes\">What are WordPress shortcodes?<\/h2><p class=\"wp-block-paragraph\">A WordPress shortcode is a tag in square brackets that WordPress replaces with predefined content or functionality. For example,<\/p><p>[subscribe]<span> can run a PHP function that displays a subscription link wherever you add the shortcode.<\/span><\/p><p><span>Shortcodes can be self-closing, such as <\/span><code><span>[subscribe]<\/span><\/code><span>, or enclosing, such as <\/span><code><span>[subscribe]Facebook[\/subscribe]<\/span><\/code><\/p><p class=\"wp-block-paragraph\">. They&rsquo;re useful when you want to reuse the same custom output across multiple posts or pages without adding the underlying code each time.<\/p><p class=\"wp-block-paragraph\">WordPress plugins can also register their own shortcodes. For example, some <a data-click-id=\"hgr-post-content-link-wordpress-contact-form-plugins\" href=\"\/tutorials\/wordpress-contact-form\/\">WordPress contact form plugins<\/a> use shortcodes to insert forms into posts and pages.<\/p><figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"How to Create a Shortcode in WordPress\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/ooDcpimdf_w?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure><p>\n\n\n\n  <div class=\"youtube-shortcode\">\n    <div class=\"row\">\n      <div class=\"col-7 col-sm-8 d-flex align-items-center\">\n        <img decoding=\"async\" class=\"channel-logo\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/youtube-channels\/hostinger-academy.jpg\" alt=\"youtube channel logo\">\n        <div class=\"d-flex flex-column justify-content-between\">\n          <span class=\"slogan d-none d-sm-block\">Subscribe For more educational videos!<\/span>\n          <span class=\"channel-name\">Hostinger Academy<\/span>\n        <\/div>\n      <\/div>\n      <div class=\"col-5 col-sm-4 d-flex align-items-center justify-content-end\">\n          <a data-click-id=\"hgr-post-content-link-subscribe\" class=\"subscribe-button\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" href=\"http:\/\/www.youtube.com\/channel\/UCbNIC-svDbtUOH2qsLnPQPg?sub_confirmation=1\">\n            <img decoding=\"async\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/icons\/youtube.svg\" alt=\"subscribe\">\n            <span>Subscribe<\/span>\n          <\/a>\n      <\/div>\n    <\/div>\n  <\/div>\n\n    \n\n\n\n<\/p><h2 id=\"h-how-to-create-a-shortcode-in-wordpress-in-7-steps\" class=\"wp-block-heading h-t-title-2\">How to create a shortcode in WordPress<\/h2><p class=\"wp-block-paragraph\">To create a custom WordPress shortcode, write a PHP callback function and register it with <code>add_shortcode()<\/code>. You can then insert the registered shortcode into posts or pages using the Shortcode block.<\/p><p class=\"wp-block-paragraph\">In the following steps, we&rsquo;ll create a shortcode that outputs social media links. We&rsquo;ll start by choosing where to add the PHP code, then register the shortcode, add attributes and enclosed content, and test the result in WordPress.<\/p><h3 class=\"wp-block-heading h-t-title-3\">1. Choose where to add the shortcode code<\/h3><p class=\"wp-block-paragraph\">Before creating the shortcode, choose a safe place for its PHP code. In this tutorial, we&rsquo;ll add the code to the <code>functions.php<\/code> file of a WordPress child theme so a parent theme update doesn&rsquo;t overwrite the customization.<\/p><p class=\"wp-block-paragraph\">If you don&rsquo;t already use one, <a data-click-id=\"hgr-post-content-link-create-a-wordpress-child-theme\" href=\"\/tutorials\/how-to-create-wordpress-child-theme\/\">create a WordPress child theme<\/a> before continuing. Also <a data-click-id=\"hgr-post-content-link-back-up-your-wordpress-site\" href=\"\/tutorials\/backup-wordpress\/\">back up your WordPress site<\/a> before editing PHP files.<\/p><p class=\"wp-block-paragraph\">You can open the child theme&rsquo;s <code>functions.php<\/code> file through the WordPress Theme File Editor, your hosting provider&rsquo;s File Manager, or an FTP client. The shortcode code is the same regardless of how you access the file.<\/p><p class=\"wp-block-paragraph\">For a detailed walkthrough of these options, see our guide on <a data-click-id=\"hgr-post-content-link-adding-php-code-to-wordpress\" href=\"\/tutorials\/how-to-add-php-code-to-wordpress\/\">adding PHP code to WordPress<\/a>.<\/p><h3 class=\"wp-block-heading h-t-title-3\">2. Register the shortcode<\/h3><p class=\"wp-block-paragraph\">Create a PHP callback function that returns the content WordPress should display when someone uses the shortcode. Then register that function with <code>add_shortcode()<\/code>.<\/p><p class=\"wp-block-paragraph\">Add this code to the child theme&rsquo;s <code>functions.php<\/code> file:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">function subscribe_link() {\n    return 'Follow us on Twitter';\n}\n\nadd_shortcode( 'subscribe', 'subscribe_link' );<\/pre><p class=\"wp-block-paragraph\">The <code>subscribe_link()<\/code> function returns the shortcode output. Shortcode callbacks should return their content rather than display it directly with <code>echo<\/code>.<\/p><p class=\"wp-block-paragraph\">The <code>add_shortcode()<\/code> function connects the <code>subscribe<\/code> tag to the <code>subscribe_link()<\/code> callback. Once registered, adding <code>[subscribe]<\/code> to WordPress runs the function and replaces the shortcode with <strong>Follow us on Twitter<\/strong>.<\/p><p class=\"wp-block-paragraph\">Use a unique shortcode tag if you adapt this example for your own site, as registering the same tag twice causes one shortcode handler to override the other.<\/p><h3 class=\"wp-block-heading h-t-title-3\">3. Add and test the shortcode<\/h3><p class=\"wp-block-paragraph\">Test the registered shortcode in a WordPress post or page to make sure the callback works correctly.<\/p><ol start=\"1\" class=\"wp-block-list\">\n<li>Open the post or page where you want to display the shortcode.<\/li>\n\n\n\n<li>Add a <strong>Shortcode<\/strong> block. If you&rsquo;re new to the editor, see our guide to the <a data-click-id=\"hgr-post-content-link-wordpress-block-editor\" href=\"\/tutorials\/gutenberg-wordpress\/\">WordPress block editor<\/a>.<\/li>\n\n\n\n<li>Enter the shortcode:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[subscribe]<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Preview or publish the page.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a data-click-id=\"hgr-post-content-link-tutorials-wp-content-uploads-sites-2-2022-03-subscribe-short\" href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/subscribe-shortcode-wordpress.png\"><img decoding=\"async\" width=\"955\" height=\"269\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/subscribe-shortcode-wordpress.png\/public\" alt=\"The [subscribe] tag in the WordPress editor\" class=\"wp-image-47617\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/subscribe-shortcode-wordpress.png\/w=955,fit=scale-down 955w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/subscribe-shortcode-wordpress.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/subscribe-shortcode-wordpress.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/subscribe-shortcode-wordpress.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 955px) 100vw, 955px\" \/><\/a><\/figure>\n<\/div><p class=\"wp-block-paragraph\">WordPress should replace <code>[subscribe]<\/code> with the text <strong>Follow us on Twitter<\/strong> returned by the <code>subscribe_link()<\/code> function.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a data-click-id=\"hgr-post-content-link-tutorials-wp-content-uploads-sites-2-2022-03-shortcode-outco\" href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/shortcode-outcome.png\"><img decoding=\"async\" width=\"1097\" height=\"722\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/shortcode-outcome.png\/w=1024,h=1024,fit=scale-down\" alt=\"Example of the outcome of a subscribe shortcode on a WordPress site\" class=\"wp-image-47618\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/shortcode-outcome.png\/w=1097,fit=scale-down 1097w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/shortcode-outcome.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/shortcode-outcome.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/shortcode-outcome.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/03\/shortcode-outcome.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1097px) 100vw, 1097px\" \/><\/a><\/figure>\n<\/div><p class=\"wp-block-paragraph\">If the shortcode itself appears on the page instead of the expected text, check that the <code>add_shortcode()<\/code> line and callback function are both saved in the active child theme&rsquo;s <code>functions.php<\/code> file.<\/p><h3 class=\"wp-block-heading h-t-title-3\">4. Add an attribute to the shortcode<\/h3><p class=\"wp-block-paragraph\">Add an attribute when you want the same shortcode to produce different output. For this example, we&rsquo;ll add a <code>link<\/code> attribute so you can change the destination URL each time you use <code>[subscribe]<\/code>.<\/p><p class=\"wp-block-paragraph\">Replace the shortcode function from Step 2 with:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">function subscribe_link( $atts ) {\n    $atts = shortcode_atts(\n        array(\n            'link' =&gt; '#',\n        ),\n        $atts,\n        'subscribe'\n    );\n\n    return sprintf(\n        '&lt;a href=\"%s\"&gt;Follow us&lt;\/a&gt;',\n        esc_url( $atts['link'] )\n    );\n}\n\nadd_shortcode( 'subscribe', 'subscribe_link' );<\/pre><p class=\"wp-block-paragraph\">The <code>shortcode_atts()<\/code> function combines the attributes entered in the shortcode with the defaults defined in the callback. Here, <code>link<\/code> defaults to <code>#<\/code> when no URL is provided.<\/p><p class=\"wp-block-paragraph\">The function then uses the <code>link<\/code> value as the destination of an HTML link. <code>esc_url()<\/code> escapes the URL before WordPress outputs it.<\/p><h3 class=\"wp-block-heading h-t-title-3\">5. Test the shortcode attribute<\/h3><p class=\"wp-block-paragraph\">Test the <code>link<\/code> attribute by adding the shortcode to a WordPress post or page with a destination URL.<\/p><p class=\"wp-block-paragraph\">For example:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[subscribe link=\"https:\/\/www.facebook.com\/Hostinger\/\"]<\/pre><p class=\"wp-block-paragraph\">Preview or publish the page. The shortcode should display <strong>Follow us<\/strong> as clickable text that links to the URL provided in the <code>link<\/code> attribute.<\/p><p class=\"wp-block-paragraph\">You can reuse the same shortcode with a different destination:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[subscribe link=\"https:\/\/x.com\/Hostinger\"]<\/pre><p class=\"wp-block-paragraph\">Each shortcode uses the same PHP function while producing a link with a different destination.<\/p><h3 class=\"wp-block-heading h-t-title-3\">6. Create an enclosing shortcode<\/h3><p class=\"wp-block-paragraph\">Use an enclosing shortcode when you want to control the visible link text as well as the destination URL. WordPress passes the content between the opening and closing shortcode tags to the callback through the <code>$content<\/code> parameter.<\/p><p class=\"wp-block-paragraph\">Replace the function from Step 4 with:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">function subscribe_link( $atts, $content = null ) {\n    $atts = shortcode_atts(\n        array(\n            'link' =&gt; '#',\n        ),\n        $atts,\n        'subscribe'\n    );\n\n    $link_text = $content ? $content : 'Follow us';\n\n    return sprintf(\n        '&lt;a href=\"%s\"&gt;%s&lt;\/a&gt;',\n        esc_url( $atts['link'] ),\n        esc_html( $link_text )\n    );\n}\n\nadd_shortcode( 'subscribe', 'subscribe_link' );<\/pre><p class=\"wp-block-paragraph\">The <code>$content<\/code> parameter contains any text placed between <code><\/code><\/p><p>[subscribe]<span> and <\/span><code dir=\"ltr\"><span>[\/subscribe]<\/span><\/code><\/p><p class=\"wp-block-paragraph\">. If you use the shortcode without enclosed content, the function falls back to <strong>Follow us<\/strong>.<\/p><p class=\"wp-block-paragraph\">For example, this shortcode uses <strong>Facebook<\/strong> as the visible link text:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[subscribe link=\"https:\/\/www.facebook.com\/Hostinger\/\"]Facebook[\/subscribe]<\/pre><p class=\"wp-block-paragraph\">WordPress will display <strong>Facebook<\/strong> as a clickable link to the URL in the <code>link<\/code> attribute.<\/p><h3 class=\"wp-block-heading h-t-title-3\">7. Test the enclosing shortcode<\/h3><p class=\"wp-block-paragraph\">Test the enclosing shortcode by adding custom link text between the opening and closing tags.<\/p><p class=\"wp-block-paragraph\">For example:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[subscribe link=\"https:\/\/www.facebook.com\/Hostinger\/\"]Facebook[\/subscribe]<\/pre><p class=\"wp-block-paragraph\">You can reuse the same shortcode with another URL and label:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[subscribe link=\"https:\/\/x.com\/Hostinger\"]X[\/subscribe]<\/pre><p class=\"wp-block-paragraph\">Preview or publish the page. WordPress should display <strong>Facebook<\/strong> and <strong>X<\/strong> as clickable links that point to the URLs defined in their <code>link<\/code> attributes.<\/p><p class=\"wp-block-paragraph\">You can now reuse the shortcode throughout your site by changing the destination URL and enclosed link text without editing the PHP function each time.<\/p><h2 class=\"wp-block-heading h-t-title-2\" id=\"h-when-should-you-move-a-shortcode-to-a-custom-plugin\">When should you move a shortcode to a custom plugin?<\/h2><p class=\"wp-block-paragraph\">Keep a shortcode in your child theme&rsquo;s <code>functions.php<\/code> when it only supports that theme&rsquo;s design or layout. If the shortcode provides site-wide functionality that should keep working after you switch themes, move it to a custom plugin instead.<\/p><p class=\"wp-block-paragraph\">A custom plugin keeps the shortcode independent from the active theme and makes it easier to reuse or maintain. Follow our guide on <a data-click-id=\"hgr-post-content-link-creating-a-wordpress-plugin\" href=\"\/tutorials\/how-to-create-wordpress-plugin\/\">creating a WordPress plugin<\/a> if you want to turn your shortcode into standalone functionality.<\/p><p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To create a shortcode in WordPress, write a PHP callback function and register it with add_shortcode(). You can then insert [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/create-a-shortcode-in-wordpress\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":76,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to create a shortcode in WordPress in 7 steps","rank_math_description":"Learn how to create a WordPress shortcode, register it with add_shortcode(), add attributes and enclosed content, and safely store and test the code.","rank_math_focus_keyword":"create a shortcode in wordpress","_content_updated_date":"2022-03-07","footnotes":""},"categories":[22643,22637],"tags":[],"class_list":["post-47575","post","type-post","status-publish","format-standard","hentry","category-advanced","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/create-a-shortcode-in-wordpress\/","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/criar-shortcode-wordpress\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/shortcode-wordpress\/","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/crear-un-shortcode-en-wordpress\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/create-a-shortcode-in-wordpress\/","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/create-a-shortcode-in-wordpress\/","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/create-a-shortcode-in-wordpress\/","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/create-a-shortcode-in-wordpress\/","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/create-a-shortcode-in-wordpress\/","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/create-a-shortcode-in-wordpress\/","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/create-a-shortcode-in-wordpress\/","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/crear-un-shortcode-en-wordpress\/","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/crear-un-shortcode-en-wordpress\/","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/crear-un-shortcode-en-wordpress\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/criar-shortcode-wordpress\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/47575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/76"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=47575"}],"version-history":[{"count":25,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/47575\/revisions"}],"predecessor-version":[{"id":161328,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/47575\/revisions\/161328"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=47575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=47575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=47575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}