oliverchank
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Blogroll – How to Get it to Not Say That?In case anyone else stumbles upon this,
This has syntax errors:
<?php wp_list_bookmarks('title_li=__('CHANGE THIS TO WHAT YOU WANT')'); ?>
A valid syntax would be:
<?php wp_list_bookmarks('title_li='.__('CHANGE THIS TO WHAT YOU WANT')); ?>
Either way, both of the above won’t change the title_li because it needs the categorize=0 in order to take effect.
Reference: https://codex.www.ads-software.com/Function_Reference/wp_list_bookmarks
Forum: Themes and Templates
In reply to: Positioning Images in Website HeaderJust wanted to correct a few more typos, be very careful with the double quotes and semi-colons in your inline css style attributes:
<div style="float:right; padding-right:1px"><a href="https://www.merseysidescouts.com/"><img src="https://www.lydiatescouts.org.uk/wp-content/uploads/merseyside-black-yellow.png" alt="" width="70" height="110" /></a></div> <div style="float:right; border-right: 10px"><a href="https://www.altsidescouting.org.uk/"><img src="https://www.lydiatescouts.org.uk/wp-content/uploads/altside-black-yellow.png" alt="" width="70" height="110" /></a></div> <div style="float:right; border-right: 10px"><img src="https://www.lydiatescouts.org.uk/wp-content/uploads/group-black-yellow.png" alt="" width="67" height="110" /></div> <div style="float:left; padding-left:1px;"><img src="https://www.lydiatescouts.org.uk/wp-content/uploads/scouting-tagline-5.png" alt="" width="278" height="20" /></div>
Forum: Fixing WordPress
In reply to: Wp_nav_menu(); ignores custom menu, displays postsHmm… can you show us your header.php and index.php (with https://www.pastebin.com)?
Forum: Fixing WordPress
In reply to: Wp_nav_menu(); ignores custom menu, displays postsDo you have a front-page.php in your theme?
Or open every php file and search for the unwanted
wp_list_pages();
function…Forum: Fixing WordPress
In reply to: Links to custom html pages on a site with custom permalinksHere’s a solution to similar post: https://www.ads-software.com/support/topic/page-permalinks-html-ending?replies=4#post-661242
Another solution: you could leave those pages online and use a 301 redirect to their new permalink until your site is reindexed properly.
In your .htaccess file:
redirect 301 /page/files/whatever.html https://domain.com/page/whatever/
Forum: Fixing WordPress
In reply to: Multiple category posts – exclude certain categoryYou can exclude a certain category from the archives by adding a bit of code into the archive.php file of your theme right before the loop.
For example, using TwentyEleven’s archive.php, I would change this:
<?php if ( have_posts() ) : ?>
to this:
<?php if ( have_posts() ) : ?>
<?php query_posts('cat=-3') ?>
The id 3 refers to the category id you want to exclude.
In category.php, add this instead:
<?php if (!is_category('3')) { query_posts('cat=-3'); } ?>
This excludes your Current Projects posts from every browsing category pages except the Current Projects category.
For further reading, there is a lot of information in the codex about query_posts and conditional tags.