Doesn't work (4 posts)

  1. kreatemedia
    Posted 4 years ago #

    After trying to activate it, I get an error saying plugin has no header.

  2. scribu
    Plugin Author

    Posted 4 years ago #

    Care to paste the exact error message?

    PS: Are you sure the plugin files are intact?

  3. Diogo15
    Posted 4 years ago #

    @kreatemedia, i have just intalled a new wordpress blog, installed this plugin, and IT IS WORKING 100%, perfect! thanks @scribu!!

  4. Diogo15
    Posted 4 years ago #

    function alter_the_query( $request ) {
        $dummy_query = new WP_Query();  // the query isn't run if we don't pass any query vars
        $dummy_query->parse_query( $request );
        // this is the actual manipulation; do whatever you need here
        if ( $dummy_query->is_category() )
            $request['posts_per_page'] = '3';
        return $request;
    add_filter( 'request', 'alter_the_query' );

    @scribu, as a recommendation, i suggest to include this in the FAQ page or somewhere, its really useful!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic