Weblog URL



3rd Party (Commercial)

EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2


If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher


  • jQuery for the Control Panel

Add-On Type(s)



Weblog URL allows you to find channel/weblog url as specified in channel/weblog preferences.


1) weblog_url - outputs channel/weblog url as specified in Control Panel.

2) weblog_short_name - outputs short name of the channel/weblog.


1) entry_id - Optional. Allows you to specify entry_id.

4) on_failure - (any string which consists from characters legal for use in ExpressionEngine’s tag parameter
values). Optional. Allows you to specify what {exp:weblog_url} tag will output in case an entry
having specified entry_id does not exist or the weblog to which entry was posted does not have
weblog url specified in preferences.

If you leave entry_id parameter undefined, you must use {weblog_url:entry_id_start}{weblog_url:entry_id_end}
variable pair.


If entry_id is e.g. 246 then you can use optionally either single tag as here

{exp:weblog_url entry_id="246"}

or variable {weblog_url} within {exp:weblog_url}{/exp:weblog_url} tag pair as here

{exp:weblog_url entry_id="246"}

Both will return channel/weblog url as specified in channel/weblog preferences.

You will use {exp:weblog_url}{/exp:weblog_url} tag pair iin case there is a need for
parse=“inward” parameter.

You may also instead of specifying entry_id as parameter of {exp:weblog_url} to wrap it
with {weblog_url:entry_id_start}{weblog_url:entry_id_end} variable pair. For example the code
as this is possible:

{exp:weblog:prev_entry entry_id="110" category="5"}
<a href="{weblog_url:entry_id_start}{entry_id}{weblog_url:entry_id_end}{url_title}">Previous page: {title}</a>
{exp:weblog:next_entry entry_id="110" category="5"}
<a href="{weblog_url:entry_id_start}{entry_id}{weblog_url:entry_id_end}{url_title}">Next page: {title}</a>

Conditionals are supported. You can write the code as this:

{exp:weblog_url entry_id="246"}
{if weblog_short_name=="my_weblog"}

If entry having entry_id specified in parameters or specified using
{weblog_url:entry_id_start}{weblog_url:entry_id_end} variable pair does not exist,
then {exp:weblog_url} tag by default will return nothing. In case ‘on_failure’ parameter was defined,
then, in such case the tag will output what was specified as a value of this parameter.

Weblog URL Links

This entry was created June 9, 2009, 3:46 pm.
This entry was last updated March 3, 2023, 12:07 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!