sadiq
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Permalink Structure777.
The one needed to change the perma structure.
I changed it, when changing the orginal structure, but this second installation, doesnt change for some reason…
please help..
Forum: Installing WordPress
In reply to: contentanyone?
Forum: Installing WordPress
In reply to: contentanyone?
how will i move my content, my blog contents, posts to another domain..
without needing to post all of it again…
ill install wp again and then what steps…
Forum: Installing WordPress
In reply to: contentside question to the same query…
what if i want to move the content of my wordpress blog to another domain, is that possible and how, and what steps, should i take..
plus, is there a way to view the content, by the users choice, ie, one post, 3 post per page, we set it to one custom view, but is there a way that allows users to change that…
thankyou again.
Forum: Installing WordPress
In reply to: contentthankyou for your quick response, what am trying to do is, i have website xyz.com and had wp on that. but now i want to make xyz.com/blog and just want to move all the content to that…
thankyou again for your assistance.
Forum: Plugins
In reply to: index page randomcan you help?
i am grateful for taking your time to help me.
regards,
sadiqForum: Plugins
In reply to: index page randomThankyou for your help, much grateful…
ok, let me try and show you the whole thing. If you have time, please download the pool theme from: https://www.alexking.org/software/wordpress/theme_browser.php
called: “Pool”…
What i have done is, taken your first script, code:
“<?php
$random_id = $wpdb->get_var(“SELECT ID FROM $wpdb->posts WHERE post_status = ‘publish’ ORDER BY RAND() LIMIT 1”);
query_posts(“p=$random_id”);
?>”placed it in the index.php – and it worked, everytime a new post appeared.
now, the side bar. I have placed the sidebar code with the extra coding of ;
“<?php get_archives(‘postbypost’, ’10’, ‘html’, ”, ”); ?>”
so i will be able to view the last 10 posts. Now, the random code works with every other theme, other than this one (pool). When i go to one of the last 10 posts, it still refreshes, and loads another article then the one pressed. I think, there is something that needs to be closed on the indexpage, for it not to load on the sidebar page. Below i will paste both, the index page with code and the sidebar code, and see if you see whats wrong.
………..
Indexpage:
<?php get_header(); ?>
<div id=”bloque”>
<div id=”noticias”>
<?php
$random_id = $wpdb->get_var(“SELECT ID FROM $wpdb->posts WHERE post_status = ‘publish’ ORDER BY RAND() LIMIT 1”);
query_posts(“p=$random_id”);
?><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”entrada”>
<h2 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
<small><?php the_time(‘F j, Y \o\n\ g:i a’); ?> | In <?php the_category(‘, ‘) ?> | <?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></small><?php the_content(“Continue reading “.the_title(”, ”, false).”…”); ?>
<div class=”feedback”><?php link_pages(‘Pages: ‘, ”, ‘number’); ?><?php edit_post_link(‘Edit’, ‘ — ‘, ”); ?></div>
<!–
<?php trackback_rdf(); ?>
–></div>
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<h2 class=”center”>Not Found</h2>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?><?php posts_nav_link(‘ — ‘, __(‘« Previous Page’), __(‘Next Page »’)); ?>
</div><?php get_footer(); ?>
……………
sidebar.php:
<!– begin sidebar –>
<div id=”sidebar”><?php if (function_exists(‘wp_theme_switcher’)) { ?>
<div id=”themes”>
<h3><?php _e(‘Themes’); ?></h3>
<?php wp_theme_switcher(); ?>
</div>
<?php } ?>jj
<?php wp_list_cats(‘list=0&optioncount=1’); ?>
<div id=”categories”>
<h3><?php _e(‘Categories:’); ?></h3>-
<?php wp_list_cats(‘sort_column=name&optioncount=1&feed=rss’); ?>
</div>
<h4>Last Ten Posts</h4>-
<?php get_archives(‘postbypost’, ’10’, ‘html’, ”, ”); ?>
<div id=”archives”>
<h3><?php _e(‘Archives:’); ?></h3>-
<?php wp_get_archives(‘type=monthly&show_post_count=1’); ?>
</div>
<div id=”blogroll”>
<h3>Blogroll</h3>-
<?php get_links(-1, ‘
- ‘, ‘
‘, ‘ – ‘); ?>
</div>
<div id=”meta”>
<h3><?php _e(‘Meta:’); ?></h3></div>
</div>
<div class=”both”></div>
</div>
<!– end sidebar –>
………….
Basically, this theme is the only problem to your initial code, that works fine with any other theme. I just want to allow users to view the articles they want from the side bar, and also have the refresh function to work – for pool-
the above codes are from the pool theme, try it out… If it doesnt work, i think i would need to change themes…
thankyou for your help, much grateful.
Forum: Plugins
In reply to: index page randomI am grateful for you to take your time to help me, from what i understand, your saying to place the query, the new one that you suggested; above the “loop”…
but the new code that you gave, were should i place that?
“<?php while($random->have_posts()) : $random->the_post(); ?> “
were should i place this on the index page?
Please overlook my lack of knowledge, as im a newbie on wordpress, learning too…
Can you, if you have time, tel me were to place the new codes that you have provided with, and i will do the rest, i have tried many things, errors come or nothing happens.
thankyou so much.
Forum: Plugins
In reply to: index page randomthis works with every other theme, other than with pool..
i have been trying to make it work for the last 2 days, it doesnt work…
i have placed that code {which i am really grateful for} on the main index page and, i have a list of last 100 posts on the side bar, it randoms on the first page, and i am also able to view another article from the sidebar, by clicking on it.
What i have seen is, the template “Pool”, doesnt do this. When i click on a specific title from the side bar {latest 100}, it doesnt open the specific post, rather it randomly opens another – which is not what i want, which doesnt happen with any other themes.
please assist…
thankyou.
Forum: Plugins
In reply to: index page randomThankyou so much, it worked,
but one thing, i have a list of all the posts that i have made on the right hand side, now it changes when refreshed,
but when i click article number 140, another totally different one comes, then 140.
for example, i go to the website. refresh, it works.
on the right handside, there is a list of all the posts i have made. when i go down and press 130, rather than 130 coming, then function-i assume stops it- and another one comes, then 130.
maybe its somethng with the template, im using the pool one.
i think, its something to do with the code in the index page? or what
please assist..