How to use title with dailies

Is it possible to get promoted for node title when capturing today daily? I tried this:

  (org-roam-dailies-capture-templates
   '(("d" "default" entry "* %<%H:%M> \n %?"
      :if-new (file+head "%<%Y-%m-%d>.org.gpg" "#+title: ${title} %<%A, %d %B %Y> \n- tags :: [[id:fe8618df-c476-44b8-8169-a210bff989d7][Journaling]]\n")
      :unnarrowed t
      )))

However, I’m only getting the word “org” inserted the title and I’m getting this message in the minibuffer:

Error running timer ‘org-reveal’: (wrong-type-argument number-or-marker-p nil)

Document string of variable org-roam-capture-templates has the following:

  %^{prompt}  Prompt the user for a string and replace this sequence with it.
              A default value and a completion table can be specified like this:
              %^{prompt|default|completion2|completion3|...}.

So this works on my end:

(setq org-roam-dailies-capture-templates
      '(("d" "default" entry "* %?" :target
         (file+head "%<%Y-%m-%d>.org" "#+title: %^{daily-title}"))))

The error is from org-reveal, so I don’t see the relevance to Org-roam – I’d suggest your configuration for it.

1 Like