adding tags to front page posts

  • Author
    Posts
  • #42862
    soup4bob
    Power User

    Hi there,
    Thank you so much for putting a great theme together, its really hit all the spots I’m looking for in a theme.

    My question: is there any way to add the tags of a post to show on the front page’s display of individual posts? This would likely happen underneath the excerpt of the post. If this is a paid thing, let me know- I’m in to support the cause.

    Thanks!
    -bob

    Website: robertgreelsjournal.com

    #42983
    Zed
    Cryout Creations mastermind

    That would be possible by hooking the functionality:
    add_action( 'cryout_post_excerpt_hook', 'verbosa_posted_tags' );


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #43074
    soup4bob
    Power User

    Most excellent. Thank you for the response.
    I hate to ask another question but I don’t know where to put this action. If its an easy response for you, would you mind pointing me in the right direction?

    Many thanks,

    -Bob

    #43174
    Zed
    Cryout Creations mastermind

    If you don’t already have one, you should create a new child theme and place this in its functions.php file.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #43263
    soup4bob
    Power User

    oh of course. that makes sense. Thanks a bunch for taking the time to respond. Very much appreciated and I’ve tossed your name around to a couple of people looking at wordpress themes. Support!

    #46668

    Hello!

    I’m also interested in this thread but after doing what Zed has proposed I had no success.

    Would you be so kind to detail it a little bit more?

    Thank you in advance.

    Best regards.

    Website: monyi.net

    #47167
    Zed
    Cryout Creations mastermind

    @monyi, how far along did you customize?
    Do you have a child theme set up? Does it have any code in its functions.php?


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #48055

    Hi @Zed, sorry for the late reply.

    No, at the moment I’m not using a child theme. Just tried your code in the version 0.9.10.

    This is the code I have in functions.php

    <?php
    /*
     * Functions file - Calls all other required files
     *
     * PLEASE DO NOT EDIT ANY THEME FILES
     * unless you are prepared to lose all changes on the next update
     *
     * @package Verbosa
     */
    
    // variables for theme identification - do NOT edit unless you know what you are doing
    define ("_CRYOUT_THEME_NAME", "verbosa");
    define ("_CRYOUT_THEME_VERSION", "0.9.10");
    
    require_once( get_template_directory() . "/admin/main.php" ); 		    // Admin side
    
    // Frontend side
    require_once( get_template_directory() . "/includes/setup.php" );       // Setup and init theme
    require_once( get_template_directory() . "/includes/styles.php" );      // Register and enqeue css styles and scripts
    require_once( get_template_directory() . "/includes/loop.php" );        // Loop functions
    require_once( get_template_directory() . "/includes/comments.php" );    // Comment functions
    require_once( get_template_directory() . "/includes/core.php" );        // Core functions
    require_once( get_template_directory() . "/includes/hooks.php" );       // Hooks

    Thanks in advance for your help.

    Website: monyi.net

    #51046

    Hello!

    I’m need to show tags at post excerpts too so i’ve putted string “add_action( ‘cryout_post_excerpt_hook’, ‘verbosa_posted_tags’ );” into file “function.php” but nothing has changed – still no tags showed.
    Please, help. Thanks in advance!

    My file “function.php” now looks like this:

    <?php
    /*
     * Functions file - Calls all other required files
     *
     * PLEASE DO NOT EDIT ANY THEME FILES
     * unless you are prepared to lose all changes on the next update
     *
     * @package Verbosa
     */
    
    // variables for theme identification - do NOT edit unless you know what you are doing
    define ("_CRYOUT_THEME_NAME", "verbosa");
    define ("_CRYOUT_THEME_VERSION", "0.9.10");
    
    require_once( get_template_directory() . "/admin/main.php" ); 		    // Admin side
    
    // Frontend side
    require_once( get_template_directory() . "/includes/setup.php" );       // Setup and init theme
    require_once( get_template_directory() . "/includes/styles.php" );      // Register and enqeue css styles and scripts
    require_once( get_template_directory() . "/includes/loop.php" );        // Loop functions
    require_once( get_template_directory() . "/includes/comments.php" );    // Comment functions
    require_once( get_template_directory() . "/includes/core.php" );        // Core functions
    require_once( get_template_directory() . "/includes/hooks.php" );       // Hooks
    add_action( 'cryout_post_excerpt_hook', 'verbosa_posted_tags' );
    

    Website: latenightrabbit.ru

    #51227
    Zed
    Cryout Creations mastermind

    The ‘cryout_post_excerpt_hook’ hook location is only called when posts are displayed as excerpts, not full posts, so make sure the theme’s option is set accordingly.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘adding tags to front page posts’ is closed to new replies.