Generating a Rewrite Rule for sSecific Post-Requests from a Submitted Form?

I imagine that wouldn’t be too difficult. Assuming the number of custom ‘dynamic’ urls is known, this should do the trick: foreach ( array( ‘most-recent’,’last-week’,’category-1/most-recent’,’category-1/last-week’) as $page ) add_rewrite_rule( “$page/?$”, ‘index.php’, ‘top’ ); What this does is tells WordPress “Whenever you have a url structure that matches X, treat it as if the url were …

Read more

How to filter the_content() & include content from template

My guess is that single-template.php uses the_content. Now think about what happens: Your filter causes single-template.php to load single-template.php uses the_content So single-template.php loads again Which uses the_content Which loads single-template.php Which uses the_content … I am not entirely sure how to fix that, as your question is light on detail. It is hard to …

Read more

How to modify an existing meta description?

Looks like a syntax error. Change this: return( $title ); to this: return $title; EDIT Sorry; mis-read your question. I believe the question is entirely Theme-dependent. The description normally is output in the template via bloginfo( ‘description’ ). The bloginfo() function uses get_bloginfo(), which uses a simple switch, and for the description parameter, the function …

Read more