Home Forums Pro Themes University Hub Pro Services Sections

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #191146
    Sonam Phuntsho
    Participant

    Could you assist me in changing the homepage in services section from a page to a post?

    #191245
    Psink
    Keymaster

    Please follow the screen record and add this code on your site

    https://www.awesomescreenshot.com/video/22000035?key=d555783dfe9f1c881f0169e9486c4586

    Add this code at the end of function.php file – as in the screen record

    function unversity_pro_get_post_choices() {
    $choices = array( ” => esc_html__( ‘–Select–‘, ‘unversity-hub-pro’ ) );
    $args = array( ‘numberposts’ => -1, );
    $posts = get_posts( $args );

    foreach ( $posts as $post ) {
    $id = $post->ID;
    $title = $post->post_title;
    $choices[ $id ] = $title;
    }

    return $choices;
    }

    And add this code in the home-section.php – as in the screen record

    ‘choices’ => unversity_pro_get_post_choices(),

    #191392
    Sonam Phuntsho
    Participant

    I can’t access to this video anymore as I haven’t fixed my last time issues yet. Could. you send me video again

    #191399
    Psink
    Keymaster

    Is it possible to share your site login we will add it for you.

    You can share it with prashant.themepalce@gmail.com

    #191408
    Sonam Phuntsho
    Participant

    Well, it says this email address does not exit

    #191419
    Psink
    Keymaster

    We have updated post-selection on your site please verify from your side and let us know

    #191421
    Sonam Phuntsho
    Participant

    It works thanks

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.