We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Help with passing a PHP ID to an EE weblog tag (v 1.6.8)

Development and Programming

snaggle2th's avatar
snaggle2th
1 posts
15 years ago
snaggle2th's avatar snaggle2th

Hi:

I have run into this a few times now. When I try to dynamically pass an ID to an EE weblog tag, it doesn’t work. Example:

{exp:weblog:entries  weblog="requests" category="78" dynamnic="off" status="open" entry_id="<? echo($row["entry_id"]); ?>"}

This code returns no results. If I remove the entry_id parameter, the entire list shows up as expected. If I ‘break’ the tag, the ID shows up as expected:

{ exp:weblog:entries weblog="requests" category="78" dynamnic="off" status="open" entry_id="23841"}

So it appears that the EE tag is being evaluated before the PHP code (as: entry_id=”“), but changing the Parse Order (input/output) makes no difference. Is it possible to ensure that the PHP code runs first?

Any help would be appreciated.

Scott

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.