# WordPress

**URL:** https://forum.pinegrow.com/c/pinegrow-wp/wordpress/18.md?page=1

[Latest](https://forum.pinegrow.com/latest.md) · [Categories](https://forum.pinegrow.com/categories.md) · [Tags](https://forum.pinegrow.com/tags.md)

**Page:** 2

---

## [Best Practices? Exporting PGIA-Enabled WordPress Blocks as part of a Plugin](https://forum.pinegrow.com/t/best-practices-exporting-pgia-enabled-wordpress-blocks-as-part-of-a-plugin/8395)

<div class="topic-metadata">

**Author:** [@iamrobbie](https://forum.pinegrow.com/u/iamrobbie)\
**Replies:** 3\
**Last updated:** [October 4, 2023, 3:41pm UTC](https://forum.pinegrow.com/t/best-practices-exporting-pgia-enabled-wordpress-blocks-as-part-of-a-plugin/8395 "2023-10-04T15:41:21Z")

</div>

Hello, Pinegrow Peeps :evergreen\_tree: I’m wondering if someone in the community here might be able to point me in the right direction re: how to successfully include Pinegrow Interactions (PGIA) in WordPress Blocks exp…

---

## [\[solved\] PHP Block: How to get the post ID inside a custom block if in edit mode?](https://forum.pinegrow.com/t/solved-php-block-how-to-get-the-post-id-inside-a-custom-block-if-in-edit-mode/8404)

<div class="topic-metadata">

**Author:** [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Replies:** 2\
**Last updated:** [October 3, 2023, 1:03pm UTC](https://forum.pinegrow.com/t/solved-php-block-how-to-get-the-post-id-inside-a-custom-block-if-in-edit-mode/8404 "2023-10-03T13:03:08Z")

</div>

I need to get the post ID in a Custom PHP Block while working in the editor. This is not working: global $post; echo $post-\>ID; Nor is this: echo get\_queried\_object\_id(); Also this does not work: if(isset($\_GET\['ac…

---

## [Need help with "WordPress actions on empty loop elements"](https://forum.pinegrow.com/t/need-help-with-wordpress-actions-on-empty-loop-elements/8400)

<div class="topic-metadata">

**Author:** [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Replies:** 3\
**Last updated:** [September 28, 2023, 1:16pm UTC](https://forum.pinegrow.com/t/need-help-with-wordpress-actions-on-empty-loop-elements/8400 "2023-09-28T13:16:24Z")

</div>

Continuing the discussion from FIXED - STRING "WP\_START\_FOOTER" in exported footer.php: Using this method the template part is always rendered, even if there are results.

---

## [FIXED - STRING "\_\_\_\_WP\_START\_FOOTER\_\_\_\_" in exported footer.php](https://forum.pinegrow.com/t/fixed-string-wp-start-footer-in-exported-footer-php/8367)

<div class="topic-metadata">

**Author:** [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Replies:** 4\
**Last updated:** [September 19, 2023, 9:00am UTC](https://forum.pinegrow.com/t/fixed-string-wp-start-footer-in-exported-footer-php/8367 "2023-09-19T09:00:34Z")

</div>

Since the Upgrade to Pinegrow 7.7 the String \_\_\_\_WP\_START\_FOOTER\_\_\_\_ is written to footer.php when exporting the Theme.

---

## [Tiered Select Controls?](https://forum.pinegrow.com/t/tiered-select-controls/8353)

<div class="topic-metadata">

**Author:** [@Sebastian](https://forum.pinegrow.com/u/Sebastian)\
**Replies:** 3\
**Last updated:** [September 11, 2023, 6:45pm UTC](https://forum.pinegrow.com/t/tiered-select-controls/8353 "2023-09-11T18:45:29Z")

</div>

Hi all, how can I make a tiered select control for a block? I have a LOT of options that I dont want to load from a single control. But there are ‘tiers’ so to speak (or parent groups if you will) that each of the optio…

---

## [Is this a sensible method for adding multiple Scripts and CSS files to your Custom Blocks?](https://forum.pinegrow.com/t/is-this-a-sensible-method-for-adding-multiple-scripts-and-css-files-to-your-custom-blocks/8291)

<div class="topic-metadata">

**Author:** [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Replies:** 5\
**Last updated:** [September 9, 2023, 2:58pm UTC](https://forum.pinegrow.com/t/is-this-a-sensible-method-for-adding-multiple-scripts-and-css-files-to-your-custom-blocks/8291 "2023-09-09T14:58:32Z")

</div>

You can add just one CSS (“Style”) or two JS files (“Script”, “View script”) per Block Action. But you can use ‘Enqueue style’ and ‘Enqueue script’ Actions and therein use the ‘Dependencies’ field where you us the Asset…

---

## [FIXED - How to have different Headers and Footers with my templates?](https://forum.pinegrow.com/t/fixed-how-to-have-different-headers-and-footers-with-my-templates/694)

<div class="topic-metadata">

**Author:** [@dsc1977](https://forum.pinegrow.com/u/dsc1977)\
**Replies:** 6\
**Last updated:** [September 8, 2023, 7:28am UTC](https://forum.pinegrow.com/t/fixed-how-to-have-different-headers-and-footers-with-my-templates/694 "2023-09-08T07:28:50Z")

</div>

Im newish to pinegrow - owned for a while and Im now using it more. Im using starter theme for a site with static front page and need multiple headers (two) on for for front-page.php and one for the rest of the site. As…

---

## [Cpt - Order posts by - meta\_value](https://forum.pinegrow.com/t/cpt-order-posts-by-meta-value/8288)

<div class="topic-metadata">

**Author:** [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Replies:** 2\
**Last updated:** [August 10, 2023, 4:09pm UTC](https://forum.pinegrow.com/t/cpt-order-posts-by-meta-value/8288 "2023-08-10T16:09:08Z")

</div>

Hi. Does somebody knows how to order posts by meta\_value… Thanks.

---

## [Action 'Register Post Type': Non-public CPT can not be seen in Admin-Menu](https://forum.pinegrow.com/t/action-register-post-type-non-public-cpt-can-not-be-seen-in-admin-menu/8290)

<div class="topic-metadata">

**Author:** [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Replies:** 2\
**Last updated:** [August 10, 2023, 4:07pm UTC](https://forum.pinegrow.com/t/action-register-post-type-non-public-cpt-can-not-be-seen-in-admin-menu/8290 "2023-08-10T16:07:31Z")

</div>

Hi there, wanted to create an CPT for testimonials. There is no single page for each testimonial needed so i need to not make it public, but queryable and visible in dashboard. Problem: As soon as i remove the ‘Public’…

---

## [Issue during the reinstallation of the WordPress plugin \[Answer provided\]](https://forum.pinegrow.com/t/issue-during-the-reinstallation-of-the-wordpress-plugin-answer-provided/8246)

<div class="topic-metadata">

**Author:** [@Jonno](https://forum.pinegrow.com/u/Jonno)\
**Replies:** 1\
**Last updated:** [July 15, 2023, 7:30am UTC](https://forum.pinegrow.com/t/issue-during-the-reinstallation-of-the-wordpress-plugin-answer-provided/8246 "2023-07-15T07:30:49Z")

</div>

Does anyone know how to reactivate a WordPress License? I had to reinstall WordPress so it deleted my Pinegrow plugin. I’ve reinstalled but it won’t let me reactivate my license because it says it is already active. It w…

---

## [Wordpress Interactivity API](https://forum.pinegrow.com/t/wordpress-interactivity-api/8195)

<div class="topic-metadata">

**Author:** [@AdrianVrtel](https://forum.pinegrow.com/u/AdrianVrtel)\
**Replies:** 0\
**Last updated:** [July 1, 2023, 6:25pm UTC](https://forum.pinegrow.com/t/wordpress-interactivity-api/8195 "2023-07-01T18:25:17Z")

</div>

Hi, will this be integrated into the Pinegrow WP add-on? Would be really cool to have some kind of visual state management. Maybe node based. :thinking: (Like in visual programming not like node.js)

---

## [How can you completely remove an element in a block?](https://forum.pinegrow.com/t/how-can-you-completely-remove-an-element-in-a-block/8185)

<div class="topic-metadata">

**Author:** [@jonroc](https://forum.pinegrow.com/u/jonroc)\
**Replies:** 1\
**Last updated:** [June 29, 2023, 1:44pm UTC](https://forum.pinegrow.com/t/how-can-you-completely-remove-an-element-in-a-block/8185 "2023-06-29T13:44:18Z")

</div>

I’ve tried multiple times over the years to remove an element via a toggle switch but I get unexpected results. What is the proper way to have an entire element removed inside of a block when the toggle on the element i…

---

## [Wordpress export comments out css rules](https://forum.pinegrow.com/t/wordpress-export-comments-out-css-rules/8167)

<div class="topic-metadata">

**Author:** [@kissgyula](https://forum.pinegrow.com/u/kissgyula)\
**Replies:** 5\
**Last updated:** [June 25, 2023, 6:05am UTC](https://forum.pinegrow.com/t/wordpress-export-comments-out-css-rules/8167 "2023-06-25T06:05:13Z")

</div>

When I export the wordpress theme, not just a save but a full export, the contents of the style.css file will be commented out. It’s very annoying and for hours I didn’t understand why the template was falling apart. Wha…

---

## [Pinegrow WP master page to update HTML templates' markup before and after Site content](https://forum.pinegrow.com/t/pinegrow-wp-master-page-to-update-html-templates-markup-before-and-after-site-content/8046)

<div class="topic-metadata">

**Author:** [@martonlente](https://forum.pinegrow.com/u/martonlente)\
**Replies:** 16\
**Last updated:** [May 31, 2023, 6:16pm UTC](https://forum.pinegrow.com/t/pinegrow-wp-master-page-to-update-html-templates-markup-before-and-after-site-content/8046 "2023-05-31T18:16:01Z")

</div>

Hello, Pinegrow WP master pages work the way that everything before the Site content action exports as the header, and everything after Site content action exports as the footer. This is all right, and works well. Thi…

---

## [Page not found when I page on "Loop type: custom query" \[Fixed\]](https://forum.pinegrow.com/t/page-not-found-when-i-page-on-loop-type-custom-query-fixed/8064)

<div class="topic-metadata">

**Author:** [@gmzago](https://forum.pinegrow.com/u/gmzago)\
**Replies:** 2\
**Last updated:** [May 26, 2023, 7:08pm UTC](https://forum.pinegrow.com/t/page-not-found-when-i-page-on-loop-type-custom-query-fixed/8064 "2023-05-26T19:08:40Z")

</div>

I’m trying to do pagination in my loop: Show post \> custom query \> “procedimentos” Look: to be continued: https://prnt.sc/7XjFQqkIvNmt My pagination setup looks like this: https://prnt.sc/hjXo2uyQgyre On the pa…

---

## [\[solved\] ACF Block not listed for use on Page](https://forum.pinegrow.com/t/solved-acf-block-not-listed-for-use-on-page/8061)

<div class="topic-metadata">

**Author:** [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Replies:** 1\
**Last updated:** [May 25, 2023, 10:44am UTC](https://forum.pinegrow.com/t/solved-acf-block-not-listed-for-use-on-page/8061 "2023-05-25T10:44:37Z")

</div>

Hi there, trying to create an ACF Block with a single Taxonomy field. I’ve created a simple Block as ACF Block with just an H2 in it. In WordPress i can select the Block for adding ACF fields to it (while creating a f…

---

## [Custom fields with PODS](https://forum.pinegrow.com/t/custom-fields-with-pods/8051)

<div class="topic-metadata">

**Author:** [@tytusie](https://forum.pinegrow.com/u/tytusie)\
**Replies:** 2\
**Last updated:** [May 23, 2023, 6:13pm UTC](https://forum.pinegrow.com/t/custom-fields-with-pods/8051 "2023-05-23T18:13:59Z")

</div>

Hi all, does anyone have experience with custom fields managed by Pods? I’ve read a few things here and there about Pods \[pods.io\], and it seems like a good alternative to ACF. So, I was wondering if it works well with P…

---

## [Using color variables in CSS: Color not shown in Gutenberg Blocks](https://forum.pinegrow.com/t/using-color-variables-in-css-color-not-shown-in-gutenberg-blocks/8023)

<div class="topic-metadata">

**Author:** [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Replies:** 2\
**Last updated:** [May 12, 2023, 6:14am UTC](https://forum.pinegrow.com/t/using-color-variables-in-css-color-not-shown-in-gutenberg-blocks/8023 "2023-05-12T06:14:37Z")

</div>

In this case i use --green\_4 as a var() for background-color of a CSS Class. While --wp--preset--color--green-4 is generated for the use in Gutenberg, the “unprocessed” Variable --green\_4 does not exist in the co…

---

## [Deal with PHP or Javascript code in Wordpress](https://forum.pinegrow.com/t/deal-with-php-or-javascript-code-in-wordpress/8005)

<div class="topic-metadata">

**Author:** [@Riccarcharias](https://forum.pinegrow.com/u/Riccarcharias)\
**Replies:** 3\
**Last updated:** [May 12, 2023, 6:06am UTC](https://forum.pinegrow.com/t/deal-with-php-or-javascript-code-in-wordpress/8005 "2023-05-12T06:06:13Z")

</div>

Hi, Usually when I create a subpage with a form or something that needs to run php or javascript code, I like to write this code directly in the html structure () or above the html (\<?php). In Wordpress, it turns out th…

---

## [PHP Error in exported PHP Block?](https://forum.pinegrow.com/t/php-error-in-exported-php-block/8020)

<div class="topic-metadata">

**Author:** [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Replies:** 4\
**Last updated:** [May 12, 2023, 2:24am UTC](https://forum.pinegrow.com/t/php-error-in-exported-php-block/8020 "2023-05-12T02:24:36Z")

</div>

Facing an issue while exporting a newly created block. WordPress shows me this: syntax error, unexpected identifier "context", expecting ")" What’s causing this? It happens if there is an “Block Inner Content” Sma…

---

## [Control type "Toggle" - error in Gutenberg Block when toggled off again](https://forum.pinegrow.com/t/control-type-toggle-error-in-gutenberg-block-when-toggled-off-again/8015)

<div class="topic-metadata">

**Author:** [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Replies:** 1\
**Last updated:** [May 10, 2023, 6:28am UTC](https://forum.pinegrow.com/t/control-type-toggle-error-in-gutenberg-block-when-toggled-off-again/8015 "2023-05-10T06:28:33Z")

</div>

When toggle on and back off the following error occurs in GB: Error loading block: Invalid parameter(s): attributes Toggle Contol: Config in Pinegrow:

---

## [Best method to make parts of CSS class names dynamic with php?](https://forum.pinegrow.com/t/best-method-to-make-parts-of-css-class-names-dynamic-with-php/8006)

<div class="topic-metadata">

**Author:** [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Replies:** 5\
**Last updated:** [May 10, 2023, 6:19am UTC](https://forum.pinegrow.com/t/best-method-to-make-parts-of-css-class-names-dynamic-with-php/8006 "2023-05-10T06:19:34Z")

</div>

Because inside of double quotes is not possible i do it this way: \<button id=\<php\> echo "trtmntacc-header-" . get\_row\_index(); \</php\> aria-expanded="false" aria-controls=\<php\> echo "trtmntacc-panel-" . get\_row\_index…

---

## [Setting srcset block attribute on a source element fails](https://forum.pinegrow.com/t/setting-srcset-block-attribute-on-a-source-element-fails/7632)

<div class="topic-metadata">

**Author:** [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Replies:** 4\
**Last updated:** [May 10, 2023, 5:26am UTC](https://forum.pinegrow.com/t/setting-srcset-block-attribute-on-a-source-element-fails/7632 "2023-05-10T05:26:59Z")

</div>

I’m trying to create a block for a site logo that lets me specify an SVG with PNG/JPG fallback, and I’m running into some issues. As soon as I tell it that I want to set my srcset attribute, it writes the following PHP c…

---

## [WP Editor Page Attributes "Templates" Dropdown](https://forum.pinegrow.com/t/wp-editor-page-attributes-templates-dropdown/7971)

<div class="topic-metadata">

**Author:** [@jonlewisdp](https://forum.pinegrow.com/u/jonlewisdp)\
**Replies:** 0\
**Last updated:** [April 25, 2023, 10:30pm UTC](https://forum.pinegrow.com/t/wp-editor-page-attributes-templates-dropdown/7971 "2023-04-25T22:30:13Z")

</div>

Hello, Is it possible to have Pinegrow add the “Templates” dropdown in the WP editor under “Page Attributes”? I have a custom template that I want users to be able to switch to on some pages. I followed some general WP…

---

## [Help with displaying all post categories on my blog page?](https://forum.pinegrow.com/t/help-with-displaying-all-post-categories-on-my-blog-page/7957)

<div class="topic-metadata">

**Author:** [@bharrigan](https://forum.pinegrow.com/u/bharrigan)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 3:07pm UTC](https://forum.pinegrow.com/t/help-with-displaying-all-post-categories-on-my-blog-page/7957 "2023-04-24T15:07:53Z")

</div>

I realize this is likely a very basic question, and I apologize for that. I’m very new and am trying to teach myself everything (with a tremendous help from Adam Lowe’s youtube videos). I’m trying to display all of the …

---

## [Current flaw in unpatched WooCommerce](https://forum.pinegrow.com/t/current-flaw-in-unpatched-woocommerce/7577)

<div class="topic-metadata">

**Author:** [@chipriggs](https://forum.pinegrow.com/u/chipriggs)\
**Replies:** 4\
**Last updated:** [January 7, 2023, 1:36pm UTC](https://forum.pinegrow.com/t/current-flaw-in-unpatched-woocommerce/7577 "2023-01-07T13:36:24Z")

</div>

Just giving y’all a heads up to an article that dropped yesterday about possible JavaScript vulnerabilities in unpatched WooCommerce and quite a few other Wordpress plug-ins: Hopefully this is useful to someone in the…

---

## [Wordpress 6.2 inquiry about block based themes](https://forum.pinegrow.com/t/wordpress-6-2-inquiry-about-block-based-themes/7886)

<div class="topic-metadata">

**Author:** [@smgitner](https://forum.pinegrow.com/u/smgitner)\
**Replies:** 2\
**Last updated:** [April 15, 2023, 6:10pm UTC](https://forum.pinegrow.com/t/wordpress-6-2-inquiry-about-block-based-themes/7886 "2023-04-15T18:10:35Z")

</div>

Will Pinegrow be able to export Wordpress block based themes that can take advantage of Wordpress capabilities to use the new editor instead of the customizer? I like this new capability of being able to change the the g…

---

## [Pinegrow Form sender](https://forum.pinegrow.com/t/pinegrow-form-sender/7893)

<div class="topic-metadata">

**Author:** [@Takuya](https://forum.pinegrow.com/u/Takuya)\
**Replies:** 9\
**Last updated:** [April 6, 2023, 7:30pm UTC](https://forum.pinegrow.com/t/pinegrow-form-sender/7893 "2023-04-06T19:30:26Z")

</div>

Hi, I’m using the form smart action, which is great, but I have one small issue. When receiving a new email, the sender is the WordPress admin email and not the email address inputted in the form itself by the visitor …

---

## [List categories in a accordion](https://forum.pinegrow.com/t/list-categories-in-a-accordion/7812)

<div class="topic-metadata">

**Author:** [@beatngu](https://forum.pinegrow.com/u/beatngu)\
**Replies:** 0\
**Last updated:** [March 11, 2023, 9:34am UTC](https://forum.pinegrow.com/t/list-categories-in-a-accordion/7812 "2023-03-11T09:34:51Z")

</div>

Anyone know how to list categories in an accordion? Not much documentation about the list categories action so struggling a bit with getting it to work correct. Using a bootstrap 5 accordion and i want to show the main…

---

## [Simple but complicated question](https://forum.pinegrow.com/t/simple-but-complicated-question/7777)

<div class="topic-metadata">

**Author:** [@tytusie](https://forum.pinegrow.com/u/tytusie)\
**Replies:** 4\
**Last updated:** [February 26, 2023, 6:28pm UTC](https://forum.pinegrow.com/t/simple-but-complicated-question/7777 "2023-02-26T18:28:03Z")

</div>

Hi there, i was wondering how long does it take to develop a website as a theme. Let’s say ive done all the design, i have a clear picture of what will go here or there…Let’s assume that’s done, also, that i know quiet …

[Previous page](https://forum.pinegrow.com/c/pinegrow-wp/wordpress/18.md)

[Next page](https://forum.pinegrow.com/c/pinegrow-wp/wordpress/18.md?page=2)
