Make WordPress Core

Opened 12 years ago

Last modified 8 years ago

#19902 closed feature request

blog_url() and get_blog_url() template tags — at Version 3

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by:
Milestone: 4.5 Priority: normal
Severity: normal Version: 3.3.1
Component: Permalinks Keywords:
Focuses: Cc:

Description (last modified by johnjamesjacoby)

With usage of WordPress as a CMS increasing, the blog is not always the focal point. It would be great if there were template tags available to get the blog url, basically a wrapper for getting the options if it's set to a WordPress page, and defaulting to home_url( '/' ) if not.

Patched against r19759 (trunk)

Change History (4)

#1 follow-up: @nacin
12 years ago

Since we already have site_url(), let's try to pick a name that is less confusing. Perhaps blog_page_url() or something.

This might be a duplicate of another ticket, but I'm not locating anything.

#2 in reply to: ↑ 1 @johnjamesjacoby
12 years ago

Replying to nacin:

Since we already have site_url(), let's try to pick a name that is less confusing. Perhaps blog_page_url() or something.

Agree the nomenclature gets increasingly confusing. Possible permutations:

  • get_/blog_url()
  • get_/blog_link()
  • get_/blog_permalink()
  • get_/blog_page_url()
  • get_/blog_page_link()
  • get_/blog_page_permalink()
Last edited 12 years ago by johnjamesjacoby (previous) (diff)

#3 @johnjamesjacoby
12 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.