Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

S

schneiderbrett

@schneiderbrett
About
Posts
10
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Category filter showing hidden categories
    S schneiderbrett

    Hello!

    I just saw today, that on the projects page (schneiderbrett.com/de/projects) the "Project Thumbnail Grid" is showing all available categories even thought quite a few of them are set to be "hidden". This was working well before and only some selected categories were visible.

    What could be the reason? I deleted all my custom css to see if it had an influence but doesn't seem like it.

    Thanks in advance and kind regards,
    Amadeus

    Bug Reports

  • Shortcode to show list of project-related categories/tags on Project Page itself
    S schneiderbrett

    And last question resolved again. Here the code:

    function createPostListSubCatWork() {
    	global $post;
    	$categories = wp_get_object_terms( $post->ID, 'category', [ 'parent' => 1, 'number' => 99 ] );
        $categoryOutput = [];
    
        if (!empty($categories)) {
            array_push($categoryOutput, '<ul class="_Default">');
            foreach($categories as $category) {
                array_push($categoryOutput, '<a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </br> ');
            }
            array_push($categoryOutput, '</ul>');
        }
    
        return implode('', $categoryOutput);
    }
    add_shortcode('work_cats_pg', 'createPostListSubCatWork');
    
    • List categories for the current post: [work_cats_pg]
    • The categories should be children of category 1.
    • No more than 99 positions should be displayed.

    Source which kinde resolved it for me: https://wordpress.stackexchange.com/questions/330128/display-a-list-of-subcategories-from-specific-category-a-post-belongs-to

    Best regards,
    Amadezs

    General Discussion

  • Shortcode to show list of project-related categories/tags on Project Page itself
    S schneiderbrett

    Hi there

    A little problem came up, which I can't seem to solve.

    Thanks to the code I'll post below I can get all the active sub-categories filtered by main category. What is missing is that the sub-categories are filtered according to current post. (Not only show globaly active sub-categories but show all active sub-categories related to current post).

    function getProjSkillList() {
        global $post;
    	$args = array('parent' => 193);
    	$categories = get_categories( $args );
        $categoryOutput = [];
    
        if (!empty($categories)) {
            array_push($categoryOutput, '<ul class="_Default">');
            foreach($categories as $category) {
                array_push($categoryOutput, '<a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </br> ');
            }
            array_push($categoryOutput, '</ul>');
        }
    
        return implode('', $categoryOutput);
    }
    add_shortcode('project_skills_pg', 'getProjSkillList');
    

    By changing the number "193" I can control by which main category the sub-categories should be filtered.

    The shortcode [project_skills_pg] can be placed on page to show list of sub-categories.

    What changes to make, so that only sub-categories related to the current post are showing?

    Link to a page: https://schneiderbrett.com/fr/hotel-hasle-linie/

    Happy about any kind of hint/feedback!

    Best,
    Amadeus

    General Discussion

  • Shortcode to show list of project-related categories/tags on Project Page itself
    S schneiderbrett

    Hello again

    I tryed different things and here my solution so far:

    Basically the best info I found was after searching the web for something like "display tags on post page wordpress".

    What I found was that some changes have to be made in the "function.php" file which can be found in WP->Appearance->Theme File Editor.

    The changes where some code (probably java?) Here an example, which worked for me (after some modifications). What I did here was generate a list of "sub-categories" of a certain "main-category" to be shown on a project page itself.

    function getWorkCatList() {
        global $post;
    	$args = array('parent' => 1);
    	$categories = get_categories( $args );
            $categoryOutput = [];
    
        if (!empty($categories)) {
            array_push($categoryOutput, '<ul class="_Default">');
            foreach($categories as $category) {
                array_push($categoryOutput, '<a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </br> ');
            }
            array_push($categoryOutput, '</ul>');
        }
    
        return implode('', $categoryOutput);
    }
    
    add_shortcode('work_cats_pg', 'getWorkCatList');
    

    Explaining:
    $args = array('parent' => 1); <== Here manually input the id of the "main-category"

    array_push($categoryOutput, '<ul class="_Default">'); <== Here manually indicate which Text Format to use

    array_push($categoryOutput, '<a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . <== Here generating a clickable link to the sub-category page itself.

    add_shortcode('work_cats_pg', 'getWorkCatList'); <== Finally defining the Shortcode. The list of project-related categorys can be inserted on any page by using following shortcode: [work_cats_pg]

    The aim of all this? Less repetitive work with every new project which is posted. And projects basically show up anywhere where the user clicks a link. ;P

    If anybody sees a better solution to all this feel free to post it. I just arrived here through trial and error - probably there are more efficient solutions out there.

    One last question: Are the changes made in the "functions.php" file permanent? Hope to not crash my site with the next update.

    Best regards,
    Amadeus

    General Discussion

  • Shortcode to show list of project-related categories/tags on Project Page itself
    S schneiderbrett

    Hello

    I'm working on the "info section" of my project page template. Now I was wondering if there is already a built-in solution to show a list of categories or tags related to the project itself.

    Ideally i'm thinking of some shortcode with which all subcategories of a group, which are related to the project itself are shown/listed.

    Example:
    Main Category: Clients
    Sub-Categories: Client1, Client2, Client3....

    -> The shortcode [project_page_subcats_client] will generate a list of all "Client" Sub-Categories, which are selected for this project.

    I installed the "Shortcoder" plugin, but didn't manage to get done yet. My issue is I don't really know where to start looking. Some Java coding probably? Would be great if somebody can give me some first pointers!

    The project-page I'm talking about: https://schneiderbrett.com/hotel-hasle-linie/

    Kind regards,
    Amadeus

    General Discussion

  • Uploaded webfonts are not available in font manager
    S schneiderbrett

    Tested it with different browsers now. The problem seems to lie within firefox.

    Chrome: Working!
    Safari: Working!
    Brave: Working!
    Firefox: meh..!
    Other browsers: to be tested.

    woff2 format seems to work a bit better with firefox thought.

    Regards,
    Amadeus

    Bug Reports

  • Any way to implement tags?
    S schneiderbrett

    Awesome! Thank you very much :)

    General Discussion tags

  • Uploaded webfonts are not available in font manager
    S schneiderbrett

    The problem appears to be back? Can't see any fonts in Media Manager when adding via Font Manager, but can see them when looking up files directly via the Media Manager.

    Apart from that getting started with lay theme! woop!

    Kind regards,
    Amadeus

    Bug Reports

  • Any way to implement tags?
    S schneiderbrett

    Dear Richard and Armin

    Thank you for your replies. Watched the video - the search function is of course a cool feature to have as well.

    Looking forward to further evolutions of this wordpress theme and probably will give it a try soon ;)

    General Discussion tags

  • Any way to implement tags?
    S schneiderbrett

    Hello LayTeam!

    Are there any updates about the "tags" functionality?

    Thinking of using LayTheme for a client and myself. Having Projects and Categories and being able to sort the Projects by Categories is already great! But wondering about some more filtering possibilities.. Here an example:

    Filter 1: "Type of Service" (Categories)
    Filter 2: "Skills & Tools" (Tags)

    "Type of Service" Categories: Product Design; Graphic Design; Web Design; Project Management; ...

    "Skills & Tools" Tags: 3D Printing, Photoshop, Rhino 6, Grasshopper, Wordpress, LayTheme, Drawing, CAD, ...

    And now of course it would be awesome to have the possibility to filter for multiple Categories and Tags combined. E.g.: Show me all "Product Design, Graphic Design" Categories with "3D Printing, Photoshop, Rhino 6" Tags. (When creating a new Project in LayTheme all the corresponding Categories and Tags would be added to that Project.)

    Wondering if this might already work?

    Thanks and kind regards,
    Amadeus

    General Discussion tags
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search