VoxGrid post exchange | Forum Promotion

Recently, I’ve hit 100 posts which is a great milestone for me. I would like to continue growing a bit and I’m willing to do post exchanges with other forums.
Please note: I will try and do a little bit a day as I am quite busy too. But I will keep to my word :]
Now, the posts must be to a reasonable quality. So no short, one-worded posts or attempting to bypass this through spam posting. Try and maybe engage with the posts and threads. There is a wide range of categories to discuss in and room to expand more. Read more about VoxGrid here.
I will always try and create high quality and useful threads for your page so I expect a return of something similar for mine too.
Thank you and if you are interested in this please leave a post below or PM me! :]

 

python – Como hacer para que UpdateView funcione solo con el usuario creador del post?

Estoy haciendo un proyecto, el cual tiene un app de users, y otra de posts. En la de posts quiero que cada uno se pueda editar, pero solo por el usuario creador. El codigo que hice por ahora, me permite editar otro post sin ser el usuario creador.

class PostEditView(LoginRequiredMixin, UpdateView):

template_name = 'posts/edit.html'
model = Post
fields = ('title', 'photo', 'price', 'description')
success_url = reverse_lazy('posts:feed')

database – How to fix Uploaded to this post option to see group of images uploaded to a post in WordPress?

I’m transferring a site using the WordPress importer and Exporter settings. First, I downloaded the Posts content and the Media content, so I have two xml files.
After importing in the new site, I noticed that inside a posts, in the Add media section, when I select the “Uploaded to this post” option no images are listed. The media library shows all the images, and add media I’m also to see all the images.

Does anyone know what database content I need transfer to see the group of images uploaded to a particular post using the “Uploaded to this post” option?

Thanks,

custom post types – restrict content for users with same role

I have created a custom post type (CPT) called “books” where users will be able to exchange “bookid” and “bookinfo” (as ACF).

I have created user roles such as Countries and cities (France> Paris, France>Marseille)

I am looking to find a way that a user who has the user role Paris can only “view/edit/delete” the books from all users from same user role (Paris)

I am also looking to find a way that a user who has the user role France will be able to “view/edit/delete” the books from all sub user roles such as Paris and Marseille.

I hope my idea is quite clear…
I havent found any plugin who could do that or any function after hours of research online.
any idea ?

menus – Go back to the exact post page number

I use pagination in my index.php and I have many posts per page. Every post have a button to go back to home. The problem is that when I visit a post in a page 5 for example, the button always send me on the first page.

I’m using this: <a href="<?php echo home_url(); ?>">back</a>

Is there a simple way to track the post page position, and use it to go back properly?

Can someone review my pantyhose post?

I built mencompressionpantyhose.com, mainly sharing men's pantyhose. Because my native language is not English, there may be spelling or grammatical errors. I hope this post gets real comments.
https://mencompressionpantyhose.com/unbreakable-pantyhose-for-men-women/
Thank you.

php – Notify the user by e-mail after the creation of a post

I’ve a button, where the user create a post after click it. I want to notify him just after 10 min. I don’t know the best way to do this with PHP. I know how to send the email, what I don’t know is how to schedule this email for a specific time after the action. Has someone an idea?

Write And Publish a guest post on reddit reddit. com for $5

Write And Publish a guest post on reddit reddit. com

Write and Publish a guest post on Reddit.com with contextual nofollow backlinks , I don’t know anyone else who’s able to do this because almost all links on Reddit are nofollow.

First, I study your website content and come up with a timely, relevant story idea that would fly with reddit.com

– Domain Authority (DA): 98

– Page Authority (PA): 95

– Trust Flow (TF): 67

– Citation Flow (CT): 57

1. The link is NOFOLLOW.

2. The link will get indexed in Google, so you can get all the SEO juice shooting up your SERPs ranking.

3. The turnaround time is 3 days.

4.500 Words Quality SEO Optimized Article by Hand Writing or Collect From Your Website.

1. Website URL

2. Keywords

Why Am I different from others

Fast delivery with the best quality

I provide only high-quality work

Note: Don’t feel hesitate to contact me If you have any doubt or question just let me know

.(tagsToTranslate)Reddit(t)Guestpost(t)Backlinks

Custom post type archive not using custom template

I’m trying to create an index page for some project CPT I make. So basically it’s similar to this question, only that I’ve created the CPT in a separate plugin folder.

Following the accepted answer, this is the code from my plugin folder:

function register_my_cpt()
{
    $labels = array(
        'name' => 'Projects',
        'singular_name' => 'Project',
        'add_new' => 'New Project',
        'add_new_item' => 'Add New Project',
        'edit_item' => 'Edit Project',
        'new_item' => 'New Project',
        'view_item' => 'View Project',
        'search_items' => 'Search Project',
        'not_found' =>  'Project Not Found',
        'not_found_in_trash' => 'No Projects Found in Trash'
    );

    $args = array(
        'labels' => $labels,
        'has_archive' => true,
        'public' => true,
        'hierarchical' => false,
        'supports' => array(
            'title',
            'editor',
            'excerpt',
            'custom-fields',
            'thumbnail',
            'page-attributes'
        ),
        'rewrite' => array('slug' => 'projects'),
        'show_in_rest' => true
    );

    register_post_type('my_project', $args);
}

add_action('init', 'register_my_cpt');

function get_my_cpt_template($template) {
    global $post;

    if ($post->post_type == 'my_project') {
        $template = dirname( __FILE__ ) . '/archive-my_project.php';
    }
    return $template;
}


add_filter( 'archive_template', 'get_my_cpt_template' );
<h2> Just for testing. This is from the archive-my_project.php file. </h2>

But after I activate the plugin and go to localhost/projects/, the page seems still using index.php as its template, and hence returning an empty page.

To isolate the issue, I’ve tried modifying my index.php so that it uses wp_query to specifically retrieve the project type posts and it does display the CPT posts fine.

This question seems suggesting adding taxonomy to the CPT. In my case I don’t need any taxonomy for the project post type.

What am I missing here? Thanks!

functions – WordPress – How to show my post type TEAM in dinamic way?

Hi everyone,

I am starting now to develoo my first wordpress Theme and please, I need your help with code.

With this code I created my post type Team, the problem is to show them, I do not know how to do it.
If it’s possible, I wish to create some easy option for users in Bakery page builder to add it in a row with the option for slider. How can I do it ?

Thanks for any information

function create_post_type() {

register_post_type( 'Team',
    array(
    'labels' => array(
        'name' => __( 'Team' ),
        'singular_name' => __( 'Team' ),
        'add_new' => __( 'Add Member' ),
        'add_new_item' => __( 'Add New Member' ),
        'featured_image' => __( 'Add Photo' ),
        'edit_item' => __( 'Edit Member' )
    ),
    'public' => true,
    'menu_icon' => 'dashicons-universal-access',
    'has_archive' => true,
    'rewrite' => array('slug' => 'Team'),
    'supports' => array('title', 'editor','custom-fields', 'thumbnail'),
    )
);

}
add_action( ‘init’, ‘create_post_type’ );