• hai,
    I have a post type room, and when one clicks the room. will link to a single-room.php. but I wants a link to the template-details.php.

    Can it work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Why don’t you copy and paste the code from template-details.php into single-room.php?

    Thread Starter afrila gunadi

    (@afrila-gunadi)

    thx for reply,

    I has try it, but it doesn’t work. ??

    I straighten my problem, when I click “view details” in one room, will link to a single-room.php. on single-room.php there is a slider for one room. There slider just below the display 3 different room, I hardcoded with shortcode [room name=””] [room name=””] [room name=””].

    and there is a page that uses page-template ( template-details.php ). look the same as single-room, but 3 room is below the sliders can be changed as desired admin.

    or 3 room on single-room.php can automatically be the same as the page (template-details.php) ?

    thx ??

    Thread Starter afrila gunadi

    (@afrila-gunadi)

    oke, i can fix it with get_page(); in singel-room.php

    this my code

    <?php $page_id = 46;
    
                $page_data = get_page ( $page_id);
    
                echo apply_filters('the_content', $page_data->post_content);
    
    ?>

    Can we take the appropriate content page-attribute “details”?

    thx before ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to link ( a href="" ) to file .php’ is closed to new replies.