WordPress.org

Support

Support » How-To and Troubleshooting » passing the $m variable successfully?

passing the $m variable successfully?

  • I’ve googled the site for any light to this but haven’t found much. I’m using elasticdog’s faking multiple templates article as my baseline. Everything works great except when I view my monthly archives, I can’t get it to differentiate between a yearly archive or monthly archive.

    I can use php, but have little knowledge of it. I tried doing elseif {$m && $year} for the monthly elseif statement but that had no effect.

    My archive section is at bluewebpages.com/archives/ if needed

    Thanks

Viewing 1 replies (of 1 total)
  • maybe is_month() and is_yearly() is what you’re looking for? (could be is_year() too, not certain).

Viewing 1 replies (of 1 total)
  • The topic ‘passing the $m variable successfully?’ is closed to new replies.