g3legacy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Thumbnail HeightHi, the_post_thumbnail function might help you? Otherwise you could try settings=>media and set your medium (or other size images) to say, 150px height and 9999px wide meaning strict height but any width….I think!
the_post_thumbnail allows custom sizes to be called, there is a good about it on the codex…
Dan
Forum: Fixing WordPress
In reply to: How to customize get_the_date()Hi, here is a snippet from my site;
<div class="sidebar_date_month"><p><?php the_time('M'); ?></p></div> <div class="sidebar_date_day"><p><?php the_time('d'); ?></p></div>
Thats for “Mar” and “28”.
Maybe that helps?
Dan
Forum: Fixing WordPress
In reply to: Author name is showing up twiceHi, your php code for your loop or whatever will help. If I take a look i’ll see if anything I know could help you out.
Dan
Forum: Fixing WordPress
In reply to: How to create categories in Portfolio?<h1><?php the_title(); ?></h1> "><?php the_post_thumbnail(); ?> <?php the_content(); ?>
That “> in your code above is also wrong ; )
Forum: Fixing WordPress
In reply to: How to create categories in Portfolio?Hi, if I understand your question correctly I think you may need some custom taxonomies to go with your custom post type. If that sounds good check this page out;
https://codex.www.ads-software.com/Function_Reference/register_taxonomy
Dan
Forum: Fixing WordPress
In reply to: I've lost access to my siteHi, i’m having permalink issues too – out of interest, does returning your settings to default make your site work as expected?
Forum: Fixing WordPress
In reply to: Permalinks causing a headache!Anyone had any problems like this and solved it?
I have tried all sorts of different combos like /%category%/%postname%/ and /%postname%/ and /%category%/%postid%/ etc.
Every time I make a new custom permalink I have never used before they work as expected. When I add any additional pages it all the parent/child page links break again. If I flush the permalinks nothing happens, and the custom permalink I set-up can’t be used again. If I set a new combination it works again, until I add or modify pages. Seems a weird problem to me.
So far, only the default permalinks setting will work, which isn’t much use.
Any help?
Forum: Fixing WordPress
In reply to: Permalinks causing a headache!Hi, thanks for the link – I haven’t read that page before.
I tried the details in the linked article ( take the htaccess file down, go in and set up permalinks again ), it didn’t work. Still only the default that’s working…. *head on desk*
I also found a function (linked from that page you sent) written to sort out the 404’s with lots of positive feedback from users, that didn’t work either.
Have I missed something else?
Forum: Fixing WordPress
In reply to: the use of single.php….Ah, great that makes a lot sense – your just routing the categories down a different path. I will give this a shot, thanks.
Forum: Fixing WordPress
In reply to: the use of single.php….Hi, thanks for the message – would that code go in functions.php or the file where i’m making my portfolio query (portfolio.php for example)?
Forum: Fixing WordPress
In reply to: Exclude all categories except chosen categories from posts pageNo Problem, that code you pasted has some syntax errors so make sure you double check what you have incase they are still there… I’ve searched for ages before now, only to find I missed a colon or something!
Dan
Forum: Fixing WordPress
In reply to: Exclude all categories except chosen categories from posts pageHi, can I have a link to the page? It would also help if you put your php code for the loop on here.
Dan
Forum: Fixing WordPress
In reply to: Fail query_posts on multiple categoriesOh, hang on…
<? while (have_posts()) : the_post(); ?>
Should be;
<?php while (have_posts()) : the_post(); ?>
Forum: Fixing WordPress
In reply to: Fail query_posts on multiple categoriesHi, in the codex it has that example:
query_posts( 'category_name=staff,news' );
It says the category slug, are “upcoming-trips,closed” the category slugs? If not i’ll try something.Dan
Forum: Fixing WordPress
In reply to: Google Map WoesIf anyone gets stuck on this I found a solution of sorts…
I put a condition ( if ) php statement in the body tag. It only echos the “onLoad” function when the page is the contact us page. That seems to have sorted the problem out.
Dan