lastdragon
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Get specific posts as linksBy now I haven’t find a solution. Still searching… though I’m not sure if Conditional Tags could be a solution.
Any suggestions on how could I use conditional tags like is_single()? πForum: Fixing WordPress
In reply to: Get specific posts as linksOK Michael, thank you again for your help.
If, by a miracle I get it right, I’ll post the solution here.Forum: Fixing WordPress
In reply to: Get specific posts as linksThank you Michael, your code is very close to what I’m after…
I’ll try to expose the whole issue in order to see exactly what I’m after.
I have a plugin that works with forms (don’t know if it’s OK to say which one because it’s a payed one) and with the help of it I want visitors to add links to already published posts. Basically I want visitors to add in a box the title or anchor text and in another box a link. Then, I want their data to be converged into hyperlinks which will be appended to the already published post they’re on.So in order to do that with my plugin, visitors have to create new posts in a specific category which will be hidden in the front-end. The forms plugin will store in a custom field the post id of the post the visitors submit their info on and with the help of the code you have provided me I want to display the list of submitted links in the initial post.
Hope I managed to explain what I want to do.
However, with the code you’ve provided I managed to display these added links, but on all posts. I think I have to add as a differentiation parameter the post id of the post the visitors were on when they added the info, post id which is stored in the custom field.
The problem is how can I create a loop for the single.php which will call the links by category, and by the value of custom post? This value will be different for every post to which I want visitors to add links.
Do you think this is achievable?
Thank you,
ChrisAny suggestion you might give it’ll be appreciated π
Forum: Themes and Templates
In reply to: Navigation problemSuccess… finally I got to the bottom of this. The problem is with the new loop which looks like this:
<?php $top_query = new WP_Query(‘showposts=1’); ?>
<?php while($top_query->have_posts()) : $top_query->the_post(); $first_post = $post->ID; ?>and it doesn’t work with pagenavi for example. So the solution is to replace it with a classical loop:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
[code inside the loop]
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div><?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php get_search_form(); ?><?php endif; ?>
If you want to use Previous/Next links leave the loop as above...
If you want to use the wp-pagenavi plugin for better pagination you should delete from the loop this part:
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>Hope this is useful for you.
Other useful links:
http://forums.lesterchan.net/index.php?topic=2623.0
http://wordpress.org/support/topic/160869?replies=37Forum: Themes and Templates
In reply to: Navigation problemMy blog is Movie Trailers World. Now would be a good time for someone to help me with my problem because I’m getting kind of desperate.
I have tried many other ways but failed. I have found here a resembling issue, tried it but it didn’t work. Frankly, I’ve kind of ran out of options…
Here is my index.php as it is now, to mention that I have undone the changes I’ve mad and didn’t pay results:
<?php get_header(); ?>
<div class=”col1″>
<?php include(TEMPLATEPATH . ‘/includes/featured.php’); ?>
<?php
$showvideo = get_option(‘woo_show_video’);
if($showvideo){ include(TEMPLATEPATH . ‘/includes/video.php’); }
?>
<?php
$layout = get_option(‘woo_layout’);
include(‘layouts/’.$layout);
?>
</div><!–/col1–>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
In the folder layouts of the theme there are two php files: one is blog.php and the other default.php. You can choose one of them to select the display of the posts… one per row, in case of the blog.php, and 2 per row in case of the default.php, which I am using now.
Please help…
Forum: Themes and Templates
In reply to: Next/Previous Links not workingSorry for the mistype that’s http://www.movietrailersworld.com
Forum: Themes and Templates
In reply to: Next/Previous Links not workingHi rizwanashraf, I use Original Premium News theme, I have the same problems with page navigation and I didn’t find the code you were talking about. Where should I look for it, in the theme’s pages or in WordPress pages? I have tried everything I read on this forum, but still I can’t figure it out.
Please, if you have the time to look at the problem, I’ll be happy to give you more details. My blog is http://www.movietrailerworld.com
Thank you.
Forum: Themes and Templates
In reply to: Navigation problemI have rewritten the .htacces file and saved again the permalinks structure… no result. I have used the default theme and it worked, so the problem is the theme I use -> Original Premium News.
The solution to make it work would be to edit the theme, but the problem is I don’t know where to start… What code should I add, where should I add it to resolve this issue?
Anyone? π
Forum: Fixing WordPress
In reply to: Problems with my blogrollAlthough you disabled the Super Cache Plugin, the cached pages still exist. Try deleting the cahced pages, and then try again.