How can I sort by meta value? In meta value I have “price” (float). I make this query, but always get Sorry, no posts matched your criteria. $posts =...
I’d like to customize the feed URL of a certain WordPress-based blog that I don’t own in order to show all posts ever published. This is because I like...
I’d like my frontpage to display a list of my lastest blog posts merged with my latest “Products” custom post type posts. From the documentation i gather this should...
I use my wordpress blog for research… When I write about something, the firs thing I do is research of what’s already out there on given topic. What I...
I know there are other, maybe better ways to do what I want to achieve, but I have to use this solution. I have two stylesheets: style.css – normal...
I’m trying to make something more meaningful out of the wp_link_pages() result: $paged_page_nav = wp_link_pages( array( 'echo' => false ) ); // Now let's wrap the nav inside <li>-elements...
I’m adding a custom profile field to users of a specific role, like this : function add_custom_profile_fields( $fields ) { // get current user ID $user = new WP_User(...
i have created a custom author’s page that list the title of their posts. but the problem is i can’t get the pagination to work if it’s beyond the...
The following bit of code results in a duplicate attribute site validation error. This template script: <div class="clearfix" <?php post_class() ?>> produces this source output: <div class="clearfix" class="post-263 post...
I am working on a new version our site. Today I was going to put the blog on the new version. Our current website and the successor I am...