Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Lasha

    (@lasha)

    Is that solution tested?

    I don’t see how adding that &paged=$paged would help. The “$query_string” should already have that value within it so there’s no point to call &paged again…

    Thanks!!

    Thread Starter Lasha

    (@lasha)

    Yes, I understand this, but doesn’t the add_filter need to be in the functions.php page?

    If so, how do I pass the “post_date >= the_date(‘Y-m-d’)” filter to the add_filter function, and make the query_posts recognize it?

    Thread Starter Lasha

    (@lasha)

    Where exactly would I add the filter in that block of code?

    Thread Starter Lasha

    (@lasha)

    I found this bit of code which somewhat solves the problem. My guess is that this code goes in the functions.php file.

    How do I make it so this date filter only applies to posts being retrieved on a custom page template? I don’t want it to effect the whole blog.

    http://codex.wordpress.org/Function_Reference/query_posts#Time_Parameters
    Return posts for posts for March 1 to March 15, 2009:

    <?php
    //based on Austin Matzko’s code from wp-hackers email list
    function filter_where($where = ”) {
    //posts for March 1 to March 15, 2009
    $where .= ” AND post_date >= ‘2009-03-01’ AND post_date < ‘2009-03-16′”;
    return $where;
    }
    add_filter(‘posts_where’, ‘filter_where’);
    query_posts($query_string);
    ?>

    I have a custom page that displays posts like so:
    http://codex.wordpress.org/Pages#A_Page_of_Posts

    With my scenario, I would only set the filter to “post_date >= the_date(‘Y-m-d’)” but where does this go? How do you apply this filter to the custom $wp_query?

    This is awesome, but when you click the links to the posts, does it STAY within the same page template, or does it go to the single.php template??

    Also, will pagination break the nice URL structure when viewing page 2, 3, etc…?

    Thread Starter Lasha

    (@lasha)

    So, I found the “WP exec PHP” which allows you to write PHP code within the [exec][/exec] shortcodes. Using $_POST[”], I managed to get a form submitted and display the said data on the same page.

    While this is great, using the $_GET[”] method would be fantastic – this way people can bookmark “search queries” and so forth. Still can’t find a way to get ?var=something to work with the WordPress query string.

    Thread Starter Lasha

    (@lasha)

    Moshu, thank you for your rapid response. The visual anatomy helped me understand how things with the architecture work, and how different templates are loaded, and etc. I will start experimenting on splitting up my CSS layout to make it wordpress ready.

    If there is anyone out there willing speak to a desperate designer on the path of learning wordpress, it will be sincerely appreciated. I promise not to be too annoying. 🙂 I will post my contact info, or contact you via your website, etc. Thanks again.

    Best.

    Thread Starter Lasha

    (@lasha)

    That just made my bad. With proper manipulation of the tags, and thought, I should get everything the way I want to, sooner or later, heh. Thanks!

    If I have any more issues, I’ll probably post back in this thread since it’ll be regarding the same topic. Thanks again.

    Thread Starter Lasha

    (@lasha)

    And that will allow the template tags to work in the page I put that on top of, right?

    Thread Starter Lasha

    (@lasha)

    Yea, by page I meant file, and when I said a single tag, I didn’t mean literally only and only 1 tag. I know I have to use the author.php template.

    Speaking of making manually created files “WP Aware”, how do I do that? Thanks!

    Thread Starter Lasha

    (@lasha)

    Say I create a page called, funtime.php and placed it within the wordpress installation where template tags and etc. would work if inserted. That is what I want to do. Create a page, and have only one tag on it which displays a single user’s posts just like in an archive. Nothing else. Everything else will be coded into the page manually using HTML and CSS.

    If the resources in the page you linked me to will do just that, then I will go back and re-read until my brain has a meltdown from it. Thanks.

    Thread Starter Lasha

    (@lasha)

    Will this allow me to do what I am looking for?

    http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/

    Thanks.

    Thread Starter Lasha

    (@lasha)

    I did look through that page for a long time, and found something that is similar to what I am looking for. What the script there does is generates a page with the author’s posts. I want to have complete control over this, so I can do this:

    Create my own HTML/CSS page, and within a certain div tag, have a tag that would retrieve all of the posts from a user. I don’t want it to display links to the author’s posts, but instead, snippets of the full post just like on the index page where everyone’s posts are displayed, and you can choose to view the full entry.

    I know it sounds so simple, but I can’t seem to find anything. The reason why I want to do it manually is because the page I want to insert a user’s posts in will have other custom stuff loaded FOR that user like their picture, manually entered bio, and etc. That’s one thing WordPress doesn’t do; load custom data for the author it is displaying posts of. I hope that makes sense.

    If you have questions on what I want to do specificially, or anything else, please ask! I could really use the help. Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)