[resolved] help with dynamic linking (3 posts)

  1. twoalone
    Posted 10 years ago #

    help/advice greatly appreciated. thanks.

    i've tried several differnt quick fixes -finally figured out if i want to implement this, i'll need to change a few navigation links.

    currently my site opens to the home page (www.2withspirit.com) which displays the most recent entry. the opt-in front page plugin will open the site to the page i want.

    i need to change the "most recent post" and clickable header links in the template to go to the most recent entry rather than the http://www.2withspirit.com page. this would be a dynamic link right?

    how would i do that?

  2. twoalone
    Posted 10 years ago #

    i've figured out what the link would be and changed the home page in the nav menu.
    not sure where to change the clickable header part of the header template. anyone advise please?

    <?php /* Don't remove this line. */ require(ABSPATH . 'wp-blog-header.php'); ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/11">
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- Start of StatCounter Code -->
    <script type="text/javascript" language="javascript">
    var sc_project=645930;
    var sc_partition=5;
    var sc_security="20d5ea70";

    <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c6.statcounter.com/counter.php?sc_project=645930&java=0&security=20d5ea70" alt="free geoip" border="0"></a> </noscript>
    <!-- End of StatCounter Code -->

    <script src="<?php bloginfo('template_directory'); ?>/js_quicktags-mini.js" type="text/javascript"></script>

    <style type="text/css" media="screen">
    @import url( <?php bloginfo('stylesheet_url'); ?> );

    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>


    <a name = "top"></a>
    <div id="hnav">
    <div id="hmenu">
    <ul id="top">
    <li><a href="http://www.2withspirit.com/index.php?paged=1" title="home">home</a></li>
    <li><a href="http://www.2withspirit.com/index.php?page_id=76" title="previous entires">archives</a></li>
    <li><a href="http://www.2withspirit.com/index.php?page_id=162" title="links">links</a></li>
    <li><a href="http://www.2withspirit.com/index.php?page_id=161" title="about 2withspirit.com">about</a></li>
    <li><a href="http://www.2withspirit.com/index.php?page_id=197" title="site map">site map</a></li>
    <li><a href="#bottom" title="search previous posts">search</a></li>
    <li><?php wp_register(); ?></li>

    <div id="header">
    <h1 id="blogtitle">
    <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?>
    </div> <!-- Closes the hnav div-->

    <div id="masthead" onclick="location.href='<?php bloginfo('url'); ?>';" style="cursor: pointer;">

  3. twoalone
    Posted 10 years ago #

    nevermind- found someone off-forum who's helping me.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.