I have selected the option to Anchor an element on both

I have selected the option to Anchor an element on both Pages and Posts, but the element does not appear on any of the other Pages or Posts. All the Pages are will Default Template. It asks for Posts to apply it to all Posts of the same Type, but I'm not sure what that means.

  • Adam Czajczyk

    Hey Jesse!

    I'm happy that you use our Upfront project with Spirit theme!

    Would you please give me a bit wider description of the problem?

    Anchor - as in "Anchor Text" - is a visible (clickable) part of a link. On the other hand, it may be the way to "mark" a place on the particular page (wheather it's post or page in WordPress taxonomy) to scroll-to by clicking on another link. In other ways, setting an element as an anchor doesn't do anything unless you define a hyperlink to it.

    When you make an anchor out of an element on the page the following appears in page's source code:

    <a id="foo"></a>

    where "foo" is the name you gave it. To make use of it you need to create a link somewhere on the page that will point to it. Simply go to the post/page edit screen, select some text to use as link, click "link" icon in an editor and add an URL like this (assuming still that the name of an anchor is "foo"): #foo

    Please keep in mind that you need to delete the default "http://" part from the text field for this to work.

    It asks for Posts to apply it to all Posts of the same Type, but I'm not sure what that means

    This refers to the WordPress taxonomy. Every post or page (or product if you run a store like MarketPress eCommerce) is a set of data in WP database. "Post type" is a kind of definition, a way to distinguish between posts, pages, products, reviews or any other kind of content you can imagine. There are default post types but you are also free to create your own.

    I think you may find this articles interesting:
    1) https://premium.wpmudev.org/blog/create-wordpress-custom-post-types/
    2) http://codex.wordpress.org/Post_Types

    That said, let's assume that there are articles and products on your website. Now, if you click "All posts of this type" while editing product page the action will apply only to products but not to articles.

    Hope that helped.
    Cheers,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.