I have a search engine and have dynamic META description tags for my results. They however do not when you click view all media results for this listing which takes you to a media results page for that link.
I am using this
The rest of my code does a Preg_replace and removes the Desc and puts in the dynamic text for that page.PHP Code:
$description = 'Desc';
On my media results in the description it is static but also shows Desc in it because the code doesn't work for it like I said. Is there a way I can change Desc to $query to show the query instead by using echo or something?
here is what I am trying to do.
I know this doesn't work but I thought the example may help.PHP Code:
$description = 'echo "".$query.""';
Is there a way for me to throw in echo or something in there to make that work? any info is appreciated. thanks.