nearlythere
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Fatal error on deactivating plugins check_admin_refererwow, i promise, i spent ages trying to work this out before i posted!
but i figured out my fatal error:
i copied a file from another installation of wordpress, and this caused the problems.
fixed!
Forum: Plugins
In reply to: [UPDATE] Post Restrictions 1.1in case someone is looking for the link to this plugin, found v 1.1 here:
Post Restrictions Plugin
https://soeren-weber.net/post/2006/01/01/121/Forum: Plugins
In reply to: Google Video Plugincool! i can’t wait to get video into my site.
FYI: i added this to the codex plugin page to facilitate people locating this handy plugin,
Forum: Fixing WordPress
In reply to: How would I create just a basic list of all posts?next you’ll want to get familiar with Template Tags, you kindest friends.
https://codex.www.ads-software.com/Template_Tags/the_time
there are some different examples of getting the post time displayed. and you can place them ‘next to’ your title, depending on the code you’re using. (is it a
<li>
or<h3>
header tag?)post your code if you have trouble.
Forum: Fixing WordPress
In reply to: How to list categories by author?wordpress is pretty flexible, actually. if you want to learn more about customizing wordpress and hone your skills, you can also do this without a plugin.
for example, you can create a custom category template, and give query_posts a variable of an author id, via a URL query string. (nb: you’d have to create a custom template for each new category)
ohh… you could also create a custom author template, and give query_posts a category to deliver. that would be good too.
since i have this handy, here’s an basic example of how you’d do it with custom category templates.
1- create a custom category-x.php file in your theme folder. in this case i’m doing the default category-1.php
this is a basic one that works with WP default theme:
<?php get_header(); ?>
<?php
$thisauthor = $_GET['author'];
?><?php query_posts("author=$thisauthor") ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h3><?php the_title(); ?></h3>
<?php the_content(); ?>
<?php endwhile; ?>
<?php else : ?>
<p>No posts by that author</p>
<?php endif; ?><?php get_footer(); ?>
2- then, create links to this page (URL query string) and send it the variable of the author ID. i use permalinks and make links like this:
https://sitename.com/category/misc?author=2you can make these links using the list authors functionality.
references in the Codex:
https://codex.www.ads-software.com/Template_Tags/query_posts
https://codex.www.ads-software.com/Category_Templates
also try… https://codex.www.ads-software.com/Author_Templates
Forum: Fixing WordPress
In reply to: search works only on frontpage?really interesting. i’d love to be able to do that (restrict search to current area). ;o) of course it’s not what you wanted!
can you post the code you are using for the searchform.php of your theme?
when yours is displayed in HTML i see an empty action:
<form id="searchform" method="get" action="">
when mine is displayed on my site i see this in the code:
<form method="get" id="searchform" action="/index.php">
this is the code from MY searchform.php…
<form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
what’s yours?
Forum: Fixing WordPress
In reply to: How difficult can it be!!! Arrrghi’m not sure about your alignment problem. it looks fine on Firefox for Mac OS X.
but, to test if it is the front page, you need the conditional tag: is_home()
https://codex.www.ads-software.com/Conditional_Tags#The_Main_Page
try testing this in sidebar:
<?php
if (is_home()) { ?><!– your code –>
This is HOME
`<?php } ?>
Forum: Requests and Feedback
In reply to: Hidden categories?functionality exists for this and is called ‘exclude’ categories (rather than ‘hide’).
otherwise, if you want a site-wide function, there’s plugins for this:
https://www.gudlyf.com/archives/2005/03/08/wordpress-plugin-category-visibility/in case anyone else comes across this post:
using the term ‘exclude’ should help search the forum archives and the codex. i like to use google to search using the site: option, like this:
https://www.google.com/search?q=site:codex.www.ads-software.com+exclude+category
NB:
i would have added a how-to, but i don’t know from which tag you want to exlucde a category. depending on which tag you are modifying, the exclude code is different. check each tag in the codex.for example: there are even two ways of listing categories:
<?php wp_list_cats(); ?>
<?php list_cats(); ?>https://codex.www.ads-software.com/Template_Tags/list_cats
https://codex.www.ads-software.com/Template_Tags/wp_list_catsForum: Installing WordPress
In reply to: Page structurequicktags is easy to customize.
at about line 35 you can start adding in new quicktags when the ‘edButtons’ start. they will appear leftmost in your post editing page.
i have a subheader for mine, and it looks like this, notice all the places you have to change.
edButtons[edButtons.length] =
new edButton(‘ed_subheader’
,’subheader’
,'<h4>’
,'</h4>’
,”
);try searching the forum and the codex for quicktags examples. i think there’s other examples, and maybe you could be prompted to type in 3, 4, 5, etc to get various subheadings.
Forum: Fixing WordPress
In reply to: how to make the_content `<!–more–>` work on single pagehmm… you mention this is happening on a ‘single’ page, so i think you mean a single.php template…
however, you say it’s a page showing all posts from a category, so i’m assuming it’s a category-X.php template. if so, that’s unexpected…
from codex:
using the more like it says: “… when viewed on the non-single/non-permalink web page such as archives, categories, front page, and searches, the post is shown as an excerpt to the more point.”
https://codex.www.ads-software.com/Customizing_the_Read_Morebasically, if you’re using a single.php template, then it will show the whole loop.
can you tell me what ‘kind’ of template you are using? single or category?
Forum: Fixing WordPress
In reply to: target=’_blank’sorry, but without knowing what plugin your are talking about, and with no link, it’s hard to help you.
when i use the plain img quicktag in the editing screen, i don’t get the target=”_blank”… so i assume it’s something else you’re using?
Forum: Fixing WordPress
In reply to: Having a blog on two urls?… At oncedo you need two different looking blogs? or you want the same content on two domain names?
if you want the same content and two domain names, then you can get an url alias, as far as i know.
did you ask your hosting provider?
see this example:
https://sligoarts.com/
https://sligoarts.ie/NB: i’m probably going to change it at some point to a pointer, so lessen confusion.
Forum: Everything else WordPress
In reply to: Need help with a blog nameif you need help brainstorming, this is a fantastic tool:
you put in some two key words, and it not only offers thesaurus-like suggestions, it also shows which names are available or taken. and you can reserve right from nameboy.
bon chance!
Forum: Plugins
In reply to: How to show the last edited post? (not the last sent)this is called “last modified”
from codex:
“…there are several plugins available which generate the date the post was last modified. Two such plugins are Kaf Oseo’s Post Updated and Nick Momrik’s Last Modified. “
see this and those links in the codex:
https://codex.www.ads-software.com/Post_Meta_Data_Section#Changing_the_Time_and_Dateyou may have luck searching the forum for “last modified” too.
Forum: Fixing WordPress
In reply to: Word Wrap IssueIf you are referring to the site that is from your username-
Just to note, the text is top-aligned perfectly in Safari and Firefox on Mac OS X.
You’re not having a word-wrap problem, but an alignment problem. Looking in your code, there are no paragraphs after the image… and i can’t see why this would be happening.
However, if you had the text in a paragraph you might be able to control it better. Meaning, you could control the margins of both the img and the paragraph separatly. and the display:inline of the img, etc.