Skip to content

Magenaut

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

Q&A

Show a different number of posts per page depending on context (e.g., homepage, search, archive)

August 2, 2022August 1, 2022 by Magenaut

In the Reading Settings, there is place to set the number of posts shown that affects the number of posts shown in all contexts. I’d like to show instead a certain number of posts on the homepage, and a different number of posts on pages like archive, search results, etc.

Categories Q&A, Wordpress Tags archives, plugins, posts, query Leave a comment

Resolve a custom post type name vs. page permalink conflict (same slug)

August 2, 2022August 1, 2022 by Magenaut

I have a custom post type called “visningshus”, and also a Page with that slug. This is as it should (must) be.

Categories Q&A, Wordpress Tags custom-post-types, permalinks, redirect Leave a comment

$_POST form request with admin-post

August 2, 2022August 1, 2022 by Magenaut

I tried to use a form with the following markup using the action admin-post.php

Categories Q&A, Wordpress Tags forms, plugin-development Leave a comment

What does l10n.js do in WordPress 3.1? And how do I remove it?

August 2, 2022August 1, 2022 by Magenaut

I just installed WP 3.1 Beta 2 on my test server. I noticed that it ships with a new l10n.js file that gets automatically inserted into the header.

Categories Q&A, Wordpress Tags customization, javascript, wp-head Leave a comment

How to get a buddypress user profile link and a certain user profile field for the current post author?

August 2, 2022August 1, 2022 by Magenaut

I want to replace get_author_link() and get_the_author_meta($feld)

Categories Q&A, Wordpress Tags author, buddypress, profiles, user-meta Leave a comment

add_filter to youtube embeds?

August 2, 2022August 1, 2022 by Magenaut

hey guys,
when posting a youtube video link in the backend (in a post or a page) wordpress is automatically creating the embed code for me.

Categories Q&A, Wordpress Tags embed, filters, youtube Leave a comment

How to Replace YouTube Videos with a “Click to Play” Thumbnail?

August 2, 2022August 1, 2022 by Magenaut

I use a lot of embedded videos (via oembed) on my blog, and that can slow down page loads.

Categories Q&A, Wordpress Tags oembed, thumbnails, youtube Leave a comment

Check if a script/style was enqueued/registered

August 2, 2022August 1, 2022 by Magenaut

Is it possible to test whether a script or a style was registered using wp_register_script/_style or wp_enqueue_script/_style? All functions doesn’t return a value and I’m completely clueless.

Categories Q&A, Wordpress Tags wp-enqueue-script, wp-enqueue-style, wp-register-script, wp-register-style Leave a comment

ZIP up all images displayed in a [gallery] and offer as download link

August 2, 2022August 1, 2022 by Magenaut

I would like to offer my visitors the option to download the entire photo gallery (displayed on dedicated pages) as a ZIP file displayed at the bottom of each gallery page. – The full-sized image will have to be included.

Categories Q&A, Wordpress Tags gallery, media, posts Leave a comment

Change the_title() of a page dynamically

August 2, 2022August 1, 2022 by Magenaut

I’m developing a plugin that doesn’t use a custom post type, but separate database tables.
It’s a plugin that displays a list of courses with links that lead to the different course detail pages, where the user then can subscribe for a course.

Categories Q&A, Wordpress Tags menus, pages, plugin-development, title Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,508 Page2,509 Page2,510 … 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