Answers.Body: <p>My understanding is that dynamic titles only get updated whenever an entry is saved — so without using a plugin you would have to re-save them each manually. If you wanted to automate this process in a plugin, you would use something like this.</p>
  
  <pre><code>public function updateMySectionTitles()
  {
      $criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::Entry);
      $criteria-&gt;section = 'mySection';
      $entries = craft()-&gt;elements-&gt;findElements($criteria);
      foreach ($entries as $entry) {
          craft()-&gt;entries-&gt;saveEntry($entry);
      }
  }
  </code></pre>
  
  <p>Untested (if anyone sees an error please comment). Also, keep in mind, this might only update the current locale — I'm not sure. You'll need to test, and modify if needed. You could also potentially add this is as a custom command to the <a href="https://github.com/am-impact/amcommand" rel="nofollow">amcommand</a> plugin for easy access.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-09T15:48:56.460Z
Answers.LastActivityDate: 2014-12-09T16:00:16.727Z
Answers.LastEditDate: 2014-12-09T16:00:16.727Z
Answers.UserDisplayName: Douglas McDonald
Body: <p>Having changed the format of a Dynamic Entry Title, how do I get Craft to re-generate them all? I thought a background task would take care of it but nothing happens.</p>
  
Tags: <entries><tasks>
Title: How to re-generate titles for all entries in a section?
ThreadText: # How to re-generate titles for all entries in a section?
  
  (Asked by: username_0 on 2014-12-09)
  
  Having changed the format of a Dynamic Entry Title, how do I get Craft to re-generate them all? I thought a background task would take care of it but nothing happens.
  
  **Tags:** entries, tasks
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-12-09. Score: 2
  
  My understanding is that dynamic titles only get updated whenever an entry is saved — so without using a plugin you would have to re-save them each manually. If you wanted to automate this process in a plugin, you would use something like this.
  
  ```
  public function updateMySectionTitles()
  {
      $criteria = craft()->elements->getCriteria(ElementType::Entry);
      $criteria->section = 'mySection';
      $entries = craft()->elements->findElements($criteria);
      foreach ($entries as $entry) {
          craft()->entries->saveEntry($entry);
      }
  }
  
  ```
  
  Untested (if anyone sees an error please comment). Also, keep in mind, this might only update the current locale — I'm not sure. You'll need to test, and modify if needed. You could also potentially add this is as a custom command to the [amcommand](https://github.com/am-impact/amcommand) plugin for easy access.
  
  
  ---
  
  