magickwolf78
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Template Changes do not showCheck this page:
https://codex.www.ads-software.com/Pages#Examples_of_Pages_and_TemplatesIt explains a bit more about where and how the pages are shown
Warmest Regards,
Magick
Forum: Plugins
In reply to: Need help identifying this pluginwp-lightboxJS
Here is the link:
https://www.m3nt0r.de/blog/lightbox-wordpress-plugin/hope this helps
Warmest Regards,
Magick
Forum: Plugins
In reply to: Displaying Posts on a static page independent of wordpress.First off you will need to modify your htaccess file by inserting this into it
<files *.html> ForceType application/x-httpd-php </files>
This tells the browsers to read the html files that have php in them, as php.
Next at the very top of your html page you will need to insert this piece of code
<?php require('../YOUR BLOG/wp-blog-header.php'); ?>
This part tells the page where to get the information that is going to be requested.
Now for the fun part inserting a post
We will use Dogs as category’s so it will be less confusing.
any where you see category from here on out should say category(the stuff that shouldn’t be modified)
Lets say we have two categories each named DOG1 & DOG2.Ok First you will need to insert (a query) a piece of code to tell the loop where to retrieve the post,which post to retrieve, how many to show, and so on. It looks like this
<?php query_posts('category_name=DOG1&showposts=1'); ?>
The showposts=# can be any number of post you wish to show whether it is 9 or 90. and if you want to show all the posts of a particular category put a 0 int the # value place
Now you will make a call to the DB with the loop which will look like this<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!—–Now I will explain step by step how to codex the page to display the post:—–>
<div class="post">
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<!—-This tells you to link the post title to the original message and show it as h1 font size it can be set to h1-h6 depending on your personal preferences—->
<small><?php the_time('F jS, Y'); ?></small>
<!—-This tells you to display the date that the post was posted on—->
`<div class=”entry”>
<?php the_content(); ?>
</div>`<!—–This tells it to display the content of the post next—–>
`<p class=”postmetadata”>– <?php the_author(‘, ‘);?></p>
</div> <!– closes the first div box –>`<!—-This will show who the post was by and link to the original post—–>
`<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>`<!—-This tells it to end the post and show an error if there are no post meeting your criteria—–>
<?php endif; ?>
<!—–This tells it that this is truly the end of the post—–>
<!—- Below is how your first post should look when the above steps have been completed—–>
<?php query_posts('category_name=DOG1&showposts=1'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="post"> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> <small><?php the_time('F jS, Y'); ?></small> <div class="entry"> <?php the_content(); ?> </div> <p class="postmetadata">-- <?php the_author(', '); ?> </div> <!-- closes the first div box --> <?php endwhile; else: ?> Sorry, no posts matched your criteria. <?php endif; ?>
NOW if you want to show another post from a different Category such as DOG2, you will need to rewind the loop
which looks like this<?php rewind_posts(); ?>
Note you can rewind or reset the loop as many times as needed.Also in the code below notice the last part of the query posts section it says & offset = 001, this will show the second post of DOG2. You can set this to any number, for example if you wanted to show the 6th post of DOG2 it would look Like this
`<?php query_posts(‘category_name=DOG2&showposts=1&offset=005’); ‘
This is how your DOG2 category codex will look:<?php rewind_posts(); ?> <?php query_posts('category_name=DOG2&showposts=1&offset=001'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="post"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <small><?php the_time('F jS, Y'); ?></small> <div class="entry"> <?php the_content(); ?> </div> <p class="postmetadata">-- <?php the_author(', '); ?> </div> <!-- closes the first div box --> <?php endwhile; else: ?> Sorry, no posts matched your criteria. <?php endif; ?>
I hope this helps.
Warmest Regards,
Magick
Forum: Fixing WordPress
In reply to: List tags on a single static, WP generated page?If I am not mistaken you will need to create a custom page,to do this visit https://codex.www.ads-software.com/Pages .
Then you will need to insert the loop for the tags which can be found here in many different styles,
https://codex.www.ads-software.com/Template_Tags/the_tagsHope this helps
Warmest Regards,
Magick
Forum: Fixing WordPress
In reply to: Adding Adsense Directly Below Header ImageHey David,
You should be able to place your snippit just before the Loop
and after the call to the header. This is usually in the index.php page of your theme pack. Ex. shown below<?php get_header(); ?> <!--YOUR SNIPPIT SHOULD GO HERE--->Snippit ?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>
Hope this helps
Warmest Regards,
Magick
Forum: Fixing WordPress
In reply to: For the love of Category God!Try this link
It has some codex on it that may resolve your issue.
Warmest Regards,
Magick
Forum: Developing with WordPress
In reply to: Complicated web page from archives, postsVery useful link,
Thank you azaozz
Forum: Everything else WordPress
In reply to: Pls help me with side barMoshu, I do agree with you in part, Although it may be an old post, it still is a current problem for this user.
Warmest Regards,
Magick
Forum: Everything else WordPress
In reply to: Pls help me with side barHey April,
It appears that your theme is missing something whether its a call to the footer or the side bar. Have you tried reloading the theme?Warmest Regards,
Magick
Forum: Developing with WordPress
In reply to: Complicated web page from archives, postsI found an answer it will take a little more time but I will have to move the posts to something like cat 4.Then I would set up cat 1 to show posts 1-20 of cat 4, cat 2 would be set up to show posts 21-40 of cat 4, and then I would have to set up cat 3 to show posts 41+ of cat 4.
After doing this I would need to call to each cat separately form my external web page’s.
Ex..
For the main section (center/body)area I would call to cat1
The left side bar/menu I would rewind the loop then make a call to cat3 for access to the older posts.Cat2 would be called from a second web page replacing cat 1 information.
If anyone has an easier way of achieving this effect, Please let me know. Any and all ideas would be greatly appreciated.
Thank you Cathy for your quick response as well as your help.
Forum: Fixing WordPress
In reply to: Multiple loopsThis; offset=001 only only skips one. If it reads offset=002 it will skip the first two posts. and so on.. Something that may be required, you may have to reset the loop before you begin the loop in the side bar. It will look like this:
<?php rewind_posts(); ?> <?php query_posts('category_name=YOUR CAT NAME&showposts=1&offset=001'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
The rewind snip basically starts the loop or call to the db , the next snip of code tells wordpress where to look for the post, how many to show, and where to start in the cat.
then the loop tells wordpress if you got a post under that criteria since you have found it, post it.I hope this help I will try to find out more for you
Forum: Fixing WordPress
In reply to: Multiple loops<?php query_posts('category_name=YOUR CAT NAME&showposts=1&offset=001'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
offset=001 can be set to any number that you like 002,003, etc.. This will show the second newest,third, etc. post in a particular category.
Hopefully this is what you are looking for?
Forum: Fixing WordPress
In reply to: Save post from outside WordPressIf you are wanting a program for posting try a program called post2blog.
Gives you the ability to send a post to your blog from anywhere on the web with a simple right click.
It can be found at download.com.Hope this helps!