Add topbar to static html page

Spencer, You can create a custom page template file for your theme which consists of your HTML page markup. You will need to include your topbar, hopefully it is in your header.php template file in which case you can use <?php get_header(); ?> to include it. Then when you add your page you will be … Read more

Getting a specific “title for a section” only on Startpage?

I think perhaps what you want is either <?php if ( !is_front_page() ) : ?> <h2> <?php wp_reset_query(); ?> <?php echo $post->post_type; ?> </h2> <?php endif; ?> if you’ve done a custom front page that shows the blog posts, or <?php if ( !is_home() ) : ?> <h2> <?php wp_reset_query(); echo $post->post_type; ?> </h2> <?php … Read more

WP-DBManager Plugin Can’t Find Mysql Path

I solved this with help from the main StackOverflow site. One of the commenters suggested that the open_basedir directive might be set in php.ini – and that was the issue. Here is the open_basedir setting: open_basedir = “/var/www/vhosts/lifering.org/:/tmp/” I created a hard link mysql (could have been a symlink) to /usr/bin/mysql in the /tmp directory … Read more

get_the_term_list give me a whitespace

I wonder if you got any term_links-genre filters that could be modifying your get_the_term_list() output? Your code example should in general work as expected, but you might want to use the get_the_terms() function to better control the output to your own likings. Here’s a modifed version of the corresponding Codex example: /** * Customized the … Read more

how to goto specific page number including title with permalink

You’re using the wrong index: $GLOBALS[‘create_page_service’] = ‘1281’; # Your code uses ‘create_page_finder’ below $out .= ‘<a href=”‘.get_page_link($GLOBALS[‘create_page_finder’]).'”>’.get_the_title($GLOBALS[‘create_page_finder’]).'</a>’; $GLOBALS[‘create_page_service’] = ‘1281’; # my changed code uses ‘create_page_service’ below $out .= ‘<a href=”‘.get_page_link($GLOBALS[‘create_page_service’]).'”>’.get_the_title($GLOBALS[‘create_page_service’]).'</a>’; As an aside, I would avoid using globals whenever you can.