Moodles
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: More link with limit of wordsIn the post writing window, on the Visual tab, it is the 4th button from the right, button looks like two small white rectangles with a dotted line between them.
On the HTML tab, it is the “more” button.
Put your cursor where you want the “more” link to appear and click the button, depending upon which tab you are on.
Forum: Fixing WordPress
In reply to: Hide one author’s posts on the hompage?You can exclude one or more categories from the loop.
https://codex.www.ads-software.com/The_Loop
I don’t know the name of one right off, but check Plugins for one that will allow you to associate a user with a certain category.
Forum: Fixing WordPress
In reply to: More link with limit of words?? not sure what you mean.
Do you mean change the text of the more link?
Or limit the number of words in the excerpt?
or?
Forum: Fixing WordPress
In reply to: Using WP as CMS for a non-blog websiteI have found this page really helpful also, it is based on the codex here but puts several related concepts all in one article. I have made several sites using WP as a non-blog CMS. Eventually you end up needing to use multiple loops, direct categories to specific places or pages…
https://www.smashingmagazine.com/2009/07/02/power-tips-for-wordpress-template-developers/
Don’t be scared of the loop. I used to be, actually it is your friend… you just have to get to know it and understand how it works.
Forum: Fixing WordPress
In reply to: Blog post title cut off:You didn’t post a link to your site so can’t see it in action.
The title to your blog is usually in the H1 tags, the style sheet doesn’t show a width… does say Overflow:hidden… not sure.
If you are using Firefox, try the Firebug extension which is a great tool for troubleshooting layout/style issues. Internet Explorer has Developer Tools, can’t remember if that is an add-on or not.
Either can help you figure out which style setting is limiting the width of your blog title.
Forum: Fixing WordPress
In reply to: How to limit Tag Cloud to certain number?See this page:
https://codex.www.ads-software.com/Template_Tags/wp_tag_cloud
see 4th argument:
'number' => 45,
Forum: Fixing WordPress
In reply to: Category Based Monthly Archives?You might try this page
https://www.smashingmagazine.com/2009/07/02/power-tips-for-wordpress-template-developers/which is based on the WordPress codex, just that the tips are in one place and well organized.
sounds like you want to make different archive templates, and loop the archive on each to the correct category only…
Forum: Fixing WordPress
In reply to: add a class to the “read more” ?? – RESOLVEDI figured it out… css syntax error.
The class to a pseudo-class is added to the element, not the pseudo-class.
This is what worked:
.postContent a.more-link:link:after, .postContent a.more-link:visited:after { content: ""; }
Forum: Themes and Templates
In reply to: Add Separator in wp_tag_cloudThe 2nd way to show the tags was was helpful. I was looking for a way to use ASCII code for my separator, like this:
<?php $tag_cloud=wp_tag_cloud('smallest=10&largest=20&format=array'); foreach($tag_cloud as $tags) : echo $tags.' · '; endforeach; ?>
EDIT: this line
echo $tags.' · ';
is this, without the spaces:
`echo $tags.’ & # 1 8 3 ; ‘;Forum: Themes and Templates
In reply to: Exclude Category in Recent Posts WidgetOK thank you so much, MichaelH. That worked. To tweak it to look like my other widgets, this is what I used in the PHP widget:
<div class="listWidget"><ul><?php $cat_id = get_cat_ID('news'); $args=array( 'category__not_in' => array($cat_id), 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 5, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?></ul></div>
Forum: Plugins
In reply to: Add a date to Blogroll?I have it…
<table class="newslinks"> <?php $bm = get_bookmarks( array( 'orderby' => 'name', 'order' => 'ASC', 'limit' => -1, 'category' => null, 'category_name' => 'Media Coverage', 'hide_invisible' => 1, 'description' => 'link_description', 'show_updated' => 0, 'include' => null, 'exclude' => null, 'search' => '.')); foreach ($bm as $bookmark){ echo "<tr><td class=\"cell-date\">{$bookmark->link_description}</td><td><a id='media-coverage' href='{$bookmark->link_url}' target=_blank> {$bookmark->link_name} </a></td></tr>"\; } ?></table>
I had to escape the double quotes in the td classname to avoid another error.
All that is left now is styling. Many thanks alchymyth for your tip which pointed me in the right direction. (and I just now saw your reply to style the default ul/li setup… I used an existing style from my stylesheet; all links like this on the site are displayed in tables.) I left the above wandering thought process in place so maybe someone else can learn from it.
Forum: Plugins
In reply to: Add a date to Blogroll?I am working with this codelet
<?php $bm = get_bookmarks( array( 'orderby' => 'name', 'order' => 'ASC', 'limit' => -1, 'category' => null, 'category_name' => 'Media Coverage', 'hide_invisible' => 1, 'show_updated' => 0, 'include' => null, 'exclude' => null, 'search' => '.')); foreach ($bm as $bookmark){ echo "<a>link_url}' target=_blank> {$bookmark->link_name} </a> \"; } ?>
from the “get_bookmarks” Function Reference page.
However, used as is, no changes, within a page template or in the page writing window (yes I have ExecPHP plugin running) it gets an error
Parse error: syntax error, unexpected $end in /xxxxxx/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 22
short_open_tag is ON
Looks to me like all curly brackets are there
What else should I check for?Forum: Plugins
In reply to: Add a date to Blogroll?No – brilliant idea…
It ends up *after* the link. Is there a way to get the date/description to show before it? I think I need to rewrite the call to list_bookmarks…
Forum: Plugins
In reply to: Add a date to Blogroll?link-updated isn’t going to do what I want… it only adds a title tag to the link, as well as putting the name of the link within < em > tags, and this lasts only until the page is refreshed. Then it is no longer a new update.
I need the date to show… looks like I’ll have to do this display of the links by hand, within a post.
Forum: Plugins
In reply to: Add a date to Blogroll?latest update:
https://ottodestruct.com/blog/2007/how-to-make-wordpress-blogrolls-smarter/
still wading through the possibilities..