Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter ndrwld

    (@ndrwld)

    I’ve found the solution, to not hardcode pagination base. Place this code into your theme functions.php or ../wp-content/mu-plugins.
    Just add priority number to the function:

    function custom_pagination_base() {
    	global $wp_rewrite;
    
      // Change the value of the author permalink base to whatever you want here
    	  $wp_rewrite->pagination_base = 'new-pagination-base';
    
    	  $wp_rewrite->flush_rules();
    }
    add_action( 'init', 'custom_pagination_base', 1 );

    You can do this by creating rewrite rules.
    Take a look here.

    Thread Starter ndrwld

    (@ndrwld)

    I’ve found the problem. It was in custom_pagination_base function. The new one is:

    function custom_pagination_base() {
    	global $wp_rewrite;
    
      // Change the value of the author permalink base to whatever you want here
    	  $wp_rewrite->pagination_base = 'pages';
    
    	  $wp_rewrite->flush_rules();
    }
    add_action( 'init', 'custom_pagination_base' );

    However this works only for default post types (I didn’t tried it with pages).
    Unfortunately it doesn’t work with custom post types. And I don’t know why.

    If pagination base is hardcoded in wp-includes/rewrite.php – everything works fine.

    Thread Starter ndrwld

    (@ndrwld)

    There is really strange behavior. When I’m adding

    next_posts_link();
    previous_posts_link();

    The next_posts_link() shows nothing. When I click on Pagenavi links the end of url is “..page/2/pages/2/”, after flushing permalinks too, and it’s still the same after bringing everything back.

    I’ll try this on fresh installation. step by step and try to figure out where is the problem.

    Thread Starter ndrwld

    (@ndrwld)

    Thanks scribu for your response.
    Yes I did flush rewrite rules. I also tried on my other wordpress installation with all plugins disabled.

    Is it possible that the problem in posts loop? I’m calling posts through WP_Query class.

    $loop = new WP_Query( array( 'post_type' => 'post', 'ignore_sticky_posts' => 0, 'posts_per_page' => '5', 'paged' => get_query_var( 'paged' ) ) );
    	while ( $loop->have_posts() ) : $loop->the_post();
            ......
    	endwhile; // End the loop.

    and then calling wp_pagenavi with:

    if ( function_exists('wp_pagenavi') )
        wp_pagenavi( array( 'query' => $loop ) );
    Thread Starter ndrwld

    (@ndrwld)

    Here is code posted in pastebin http://pastebin.com/0Z3q1fxZ

    I experienced the same problem with crop tool on my local machine (using WAMP).
    I have Virtualhosts setup there. Just have noticed that if I change virtualhost root directory settings from “AllowOverride FileInfo Options” to “AllowOverride all” everything works fine.
    Hope this will help you.

    “Media” library enhancement like it is done with “Posts”
    1. Uploading
    a. Create/Select Category (like the “Categories” metabox from “Posts/Add New”);
    *Category Name = Folder Name (in wp-content/uploads);
    b. Ability to add thumbs to Media Categories;
    c. Create/Choose Tag (like a “Post Tags” metabox from “Posts/Add New”);

    2. Editing Media Categories (like in “Post/Categories”);
    a. Ability to add thumbs to Media Categories;

    3. Filters (Media/Library)
    a. Filtering by Categories;
    b. Filtering by Tags;

    Thread Starter ndrwld

    (@ndrwld)

    Big thanks for changes and link. Link to BP members page works perfect.
    Right now for my purposes, there are pretty enough options. It can be also used by other users to display users of their blog.
    I really like it!
    Thanks once more.

    Thread Starter ndrwld

    (@ndrwld)

    Big thanks bforchhammer plugin now displays the avatars.
    But I’ve the problem with linking avatars to author page option. In this option plugin creates links to Authors of main blog – http://domain.test/blog/author/admin/, the link structure should be – http://domain.test/members/admin/
    /blog/ and /members/ are BuddyPress Slugs – here is /developers/ slug example
    I think the best solution would be to add one more option – “BP member page”

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