Articles of posts

Allow user to follow certain categories

I’m new with wordpress, and I will be glad if you can help me. I want to make a website, like pinterest. Meaning that the user can follow certain categories (lets say “sketching” ,”art” etc), and then the user will only see posts from categories that he follow, in his main page(dashboard). Is it possible? […]

Create gallery from posts

I would like to create a gallery from those images that were posted in certain category. So, let’s say there is 500 pictures in a folder in a server, 100 of them were included in a post and 70 of them were in a certain category. Is there an easy way to do that? Thank […]

Double loop output

Hi everyone I am a sort of medium weight wp designer/developer and having trouble with a site I am working on. The demo page is here: I have inherited the following loop code in the template file, and cannot for the life of me figure out why I seem to be getting 2 outputs […]

Change Post status

With this code I want to change post_status in wordpress post. But nothing change. Is there i miss!!! echo ‘<input type=”submit” name=”submit” id=”submit” value=”Submit” />’; if (isset($_POST[‘submit’]) && ($_POST[‘submit’] == ‘Submit’)) { $query = array( ‘ID’ => $post->ID, ‘post_status’ => ‘publish’, ); wp_update_post( $query, true ); }

Custom permalink for wordpress page / post

I want to set a custom permalink for a specific wordpress page/post. My expectation: 1) Go to specific wordpress page/post edit view. 2) Click edit permalink. 3) Type in new permalink for the specific page/post and click save. I have found a plugin name Custom Permalinks which fits the exact need. However, it seems not […]

Blog Post slider not working

I’ve been trying to create my own slider for my blog posts recently but I cannot get it to work. I have tried different code online but none of them rotate my list items(These are created by the post loop). Below is code I tried from W3Schools but it shows an error Uncaught TypeError: Cannot […]

display title/content on posts page using twenty fifteen

I want to include a title and intro on the posts page, as described in this post, which is Genesis-specific. It says to create a new file, home.php, that contains the following code: <?php /** * Blog Intro * */ remove_action( ‘genesis_before_loop’, ‘genesis_do_posts_page_heading’ ); add_action( ‘genesis_before_loop’, ‘rgc_blog_intro’ ); function rgc_blog_intro() { $posts_page = get_option( ‘page_for_posts’ […]

Create manual wordpress counter

I am using WordPress // sahifa theme. I need to edit the theme counter to start from 5000 or 4000 instead of starting from 0 for a new post and add 5000 to old posts on my site.

Post WP comment for multiple post id

Is it possible to post same comment for multiple posts? When I post a comment in Post A then it should also automatically comment in Post B. How to link multiple post ids in single WP comment.

custum post inner page not taking single-gallery.php? it redirecting to archive page

<?php //———————————————- //———-register and label gallery post type //———————————————- $gallery_labels = array( ‘name’ => _x(‘Gallery’, ‘post type general name’), ‘singular_name’ => _x(‘Gallery’, ‘post type singular name’), ‘add_new’ => _x(‘Add New’, ‘gallery’), ‘add_new_item’ => __(“Add New Gallery”), ‘edit_item’ => __(“Edit Gallery”), ‘new_item’ => __(“New Gallery”), ‘view_item’ => __(“View Gallery”), ‘search_items’ => __(“Search Gallery”), ‘not_found’ => __(‘No […]