Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

Q&A

How to force WordPress to upscale images?

August 5, 2022August 4, 2022 by Magenaut

I have a bit of a problem with my WordPress images. I want to force WordPress to upscale images, so that the preferred add_image_size is always available.

Categories Q&A, Wordpress Tags images, post-thumbnails Leave a comment

Add Taxonomy Description with wp_set_post_terms

August 5, 2022August 4, 2022 by Magenaut

I am adding tags during wp_insert_post using wp_set_post_terms. But I have no clue how to add a tag description with my code. I have not found anything out there.

Categories Q&A, Wordpress Tags terms Leave a comment

Function is printing twice – any suggestions?

August 5, 2022August 4, 2022 by Magenaut

My function is returning the results correctly, but for whatever reason it is returning them twice. Any suggestions? It’s for a shortcode that queries and lists custom post types matching custom taxonomies.

Categories Q&A, Wordpress Tags functions, posts, shortcode, wp-query Leave a comment

Can you Use the Rest API to query a custom database table

August 5, 2022August 4, 2022 by Magenaut

I am new to the wp platform and just learned about the Rest Api. I am creating a plugin that will allow the user to access a note keeping system which I plan to manage in a custom database table. Is it possible to manage the CRUD through the Rest Api or is the Rest Api reserved for the core WordPress database tables?

Categories Q&A, Wordpress Tags rest-api Leave a comment

php loop error for count posts in category

August 5, 2022August 4, 2022 by Magenaut

I have multiple categories on my wordpress page and each of the categories has 1 to n subcategories. If a subcategory contains only 1 single post I would love to display an excerpt of this post, otherwise I’ll display a description of the category.

Categories Q&A, Wordpress Tags count, get-posts, loop Leave a comment

Send email with Content-Type text/plain

August 5, 2022August 4, 2022 by Magenaut

I have problem with emails in WordPress. I have to send message with Content-Type is text/plain, but in WordPress default Content-Type is text/html. That change chars like & to &.

Categories Q&A, Wordpress Tags email Leave a comment

Remove extract from function

August 5, 2022August 4, 2022 by Magenaut

I am using this code so that users can input [photo no="1"], [photo no="2"], [photo no="3"] etc.. in their posts. However I heard that extract is an unsafe function to use. How could I modify this code to remove extract?

Categories Q&A, Wordpress Tags functions, php Leave a comment

how to assign content to a different author while loading content

August 5, 2022August 4, 2022 by Magenaut

I am new to WordPress and am learning the platform on the fly. We are in the process of converting a large non-WordPress site to the WordPress platform. In the process, we have several people updating and loading content into the new site. As a result, all the content is being assigned to the individual loading the content.

Categories Q&A, Wordpress Tags author, wpdb Leave a comment

How to allow WordPress updates to only one specific administrator?

August 5, 2022August 4, 2022 by Magenaut

I found a code to prevent WordPress update for certain user role:

Categories Q&A, Wordpress Tags automatic-updates, updates, users, wp-admin Leave a comment

How sort products by calculate value? ( custom post meta, price, option)

August 5, 2022August 4, 2022 by Magenaut

I have options: wz_currency_dollar, wz_currency_euro. And post meta _wz_currency. In the admin panel price of product defined in dollar or euro and select corresponding post meta. In the front-end price recalculate for html by next formula:

Categories Q&A, Wordpress Tags sort, woocommerce-offtopic, wp-query Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,274 Page2,275 Page2,276 … Page2,571 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress