businesslogs
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Frontpage is a post Home tab is a page. why are they different?Can someone mark this as resolved yet? ??
Forum: Themes and Templates
In reply to: How to add "Time Ago" in Twenty Ten?I’m guessing you added
<?php and ?>
inside another pair of<?php ?>
Anyway, the code should be added to where you want it to show up in your theme file, say index.php or single.php, not in functions.php, you’ll probably want to replace
the_time()
orthe_date()
. This applies to eithertime_ago()
or thehuman_time_diff()
code example.Forum: Themes and Templates
In reply to: How to add "Time Ago" in Twenty Ten?You should be able to insert it anywhere in your theme functions.php. Try adding it at the end. However, WP already has a built in function for that and you can just copy the examples on this page:
https://codex.www.ads-software.com/Function_Reference/human_time_diff
Forum: Themes and Templates
In reply to: How to add "Time Ago" in Twenty Ten?What did the error say?
Forum: Everything else WordPress
In reply to: backtracksTry reading these:
https://codex.www.ads-software.com/Introduction_to_Blogging#Trackbacks
https://en.wikipedia.org/wiki/TrackbackIt’s basically a mechanism to notify someone’s site that you’ve linked to one of their posts. In modern blogging systems you don’t really have to do anything but link to the post. Once you hit publish that trackback notification gets sent.
Forum: Fixing WordPress
In reply to: Custom theme does not have ability for 'page templates' ?EDIT: I saw your reply late as I was carefully crafting this response, but I’ll just keep it here.
What’s does the code at the top of the page template say? It should looks something like this:
<?php /* Template Name: Links */ ... ?>
otherwise WP won’t be able to detect it.
You can also make page templates apply automatically by file name. So if your page is titled “Links”, it will use the template page-links.php or page-(ID of your page).php if the file exists. (More info)
Lastly, I’m not sure if your theme has page templates in the first place so go check that too.
Forum: Themes and Templates
In reply to: Reducing size of featured image on homepageYou’re right, there may be things preventing that code from working so maybe consulting at wpzoom would be more effective. You may even be better off with an excerpt plugin such as Content and Excerpt Word Limit or Fancy Excerpt.
Forum: Themes and Templates
In reply to: Reducing size of featured image on homepageIf you have a webhost control panel, try browsing your file manager and editing the file there. Always make sure you have backups of your files to restore with. If it’s really urgent contact support from your hosting company.
I also recommend learning how to use an FTP client.
Forum: Themes and Templates
In reply to: Reducing size of featured image on homepageMake sure there are no extra spaces at the start and end of your functions file.
All code must go in between
<?php
?>
and not outside.Forum: Themes and Templates
In reply to: Reducing size of featured image on homepageTry this.
Add this to functions.php:
function featured_article_excerpt_length($text){ return 20; }
(where 20 is the number of words)
then add this in the index file before
the_excerpt
:add_filter('excerpt_length', 'featured_article_excerpt_length');
Make sure that where you add it is in the featured post, probably inside
<div id="featured">...<div class="content">...<div class="entry">
The code you pasted above is broken because you posted a URL, enclose it in between two ` tick marks or use the code button.
Forum: Themes and Templates
In reply to: Reducing size of featured image on homepageYou meant the largest image with the iNudge article, right?
#featured .thumb img { width: 250px; }
But that’s just the image, its container
#content #featured .thumb
has a set width too.Forum: Themes and Templates
In reply to: Conditional Custom FieldNot sure if I understand you correctly but you want to set a specific custom field value for the custom field key ‘Images’ to ALL existing posts? You probably need to use update_post_meta while looping over all your posts in a custom query.
Forum: Fixing WordPress
In reply to: Frontpage is a post Home tab is a page. why are they different?Are you saying you want a static page to display on the front page of your blog instead of a list of posts including the Hello World?
Go to Settings > Reading and select your ‘Home’ page in the Front page dropdown.
More info here: https://codex.www.ads-software.com/Settings_Reading_SubPanel
Forum: Themes and Templates
In reply to: advice on converting static site to WPI’d recommend getting an existing theme with minimal styling which you can edit and learn with as you go along. One such example would be the Toolbox theme. Try searching for “WordPress starter themes” on WP.org Extend or Google if you want to compare features, such as number of widget areas.
Theme frameworks are a more advanced option but something to keep in mind when you’ve grown in WP theme development. ??
Forum: Themes and Templates
In reply to: when ever a new theme is uploaded,It looks like the theme you uploaded is using old code. What’s the name of the theme and could you ask the maker if he/she has a more updated version? If not, you probably have to search all the files and replace
wp_list_cats
towp_list_categories
More info about the functions here:
https://codex.www.ads-software.com/Template_Tags/wp_list_categories
https://codex.www.ads-software.com/Template_Tags/wp_list_cats