• Resolved katbagby

    (@katbagby)


    I chose this theme because I really liked the portfolio landing page, but I’m struggling with tweaking the settings so I have comprehensive organization and navigation for users. I have some questions that I will enumerate:

    1. Am I correct in assuming that tags ≠ project tags?
    2. If 1 is correct, is there a way to publish portfolio posts that include tags that can be accessed from the Primary menu? I can’t seem to use a project tag as a menu item and I’m wondering if there’s a work-around or if I should find myself a different theme. (For anyone looking at my website, the posts that are accessible via Primary menu are blog posts using normal tags from previous themes I’ve experimented with.)
    3. Like I said (^), the menu headers as of right now are sourcing old blog posts using categories and tags, but I don’t like how they display…
    “Category:breakfast” or “Tag: Lunch” instead of just “Breakfast” or “Lunch”…if there is a fix for (2^), I suspect this head problem will carry over.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @katbagby!

    Am I correct in assuming that tags ≠ project tags?

    You are correct, tags and project tags are different. A better description might be to say that they are actually two different versions of the same thing. On most sites/themes, “tags” apply to posts, while “project tags” apply to portfolio projects. Functionally, they do the same things, they’re just applied to different kinds of content ??

    If 1 is correct, is there a way to publish portfolio posts that include tags that can be accessed from the Primary menu?

    I’d recommend creating links to the project tags in the menu with a Custom Link.

    Under Appearance > Menus, you can add a custom url.

    The URL structure for a project tag will look like this:
    https://example.com/project-tag/music/

    You’d replace the bold parts with the correct values from your actual site.

    You can double check the URL for any project tag by viewing a project assigned to that tag. Scroll to the bottom and click on the tag at the end of the post, then copy the URL from the address bar ??

    I don’t like how they display…
    “Category:breakfast” or “Tag: Lunch” instead of just “Breakfast” or “Lunch”

    This happens because of a core WordPress function called get_the_archive_title().

    We can filter that function’s output, to remove the archive label (“Category:”, “Tag:”, etc) by setting up a child theme.

    In the functions.php file of your child theme, you can add this snippet of code:

    function my_archive_title( $title ) {
    	$parts = explode( ':', $title );
    	if ( count( $parts ) > 1 ) {
    		$title = $parts[1];
    	}
    	return $title;
    }
    add_filter( 'get_the_archive_title', 'my_archive_title' );

    That will strip out the description of the kind of archive you’re viewing ??

    Thread Starter katbagby

    (@katbagby)

    Thanks, Chad!

    I take it I need to upgrade to a non-free version to be able to edit the functions.php?

    Ah – your site is on WordPress.com – that puts a slightly different color on things!

    On a WordPress.com site (which have separate forums, here) you won’t have access to the theme files the way you would on a self hosted site (that’s what this forum is geared towards).

    This is the single best article I’ve ever seen on the differences: https://dailypost.wordpress.com/2013/11/14/com-or-org/

    So, short answer is yes, you’d need to be self hosted to make these edits ??

    Thread Starter katbagby

    (@katbagby)

    Of course I need to be self-hosted to do anything custom. ?? I’m afraid the coding aspect is too daunting for now. Thanks for all the help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Creating a Menu using Tags vs. Project Tags’ is closed to new replies.