php – custom taxonomies don't work

I am trying to create a template for my custom taxonomies. I want to create a shortcode so that I can decide how many taxonomies I want to display and other parameters. But the code does not work.

function cat_name_list($atts) { 

    extract( shortcode_atts( array(
        'custom_taxonomy' => 'entertainment_category',
        'posts' => 5 ,
    ), $atts ) );

$terms = get_terms(
'taxonomy' => $custom_taxonomy,
'title_li' => '',
    'number' => $posts,
    'orderby' => $orderby,
    'order' => $order,


if ( $terms && !is_wp_error( $terms ) ) :
taxonomy.'_'.$term->term_id); ?>
name; ?>

What am i doing wrong?

plugins – WordPress Custom publication status not public but visible via the link: Publications published privately

I worked on my site to post private messages on my site. I have created a custom publication status for this purpose.

My goal is to exclude messages belonging to this status from search, blog page, WordPress requests, RSS feed, etc. In principle, it should not be mentioned anywhere on the site.

So far it sounds simple, but the problem is that I WANT people to be able to see the message via a direct link.

Basically, I want it not to be mentioned throughout my site, but if someone visits it from a direct link, they can see it.

function custom_post_status(){ 
register_post_status( 'privatised', array( 'label' => _x( 'Privately Published', array('post', 'download')),
'public' => false,
 'exclude_from_search' => true,
'show_in_admin_all_list' => true, 
'show_in_admin_status_list' => true, 
'label_count' => _n_noop( 'Privately Published (%s)', 'Aggregated (%s)' ),
 ) ); 
add_action( 'init', 'custom_post_status' );

Here, if you see in the table, the first option is public, and I set it to false, which basically guarantees that my post is not there on my blog page, or research, or taxonomy page, or RSS FEED etc. Etc. But if I open the same message via its direct URL, it gives a 404, because not found …

Please help me, my message is only visible by the direct link of it.

As a sidenote, is it possible that I can make it public, then exclude it from taxonomy and everything, as I can do with exclude from research …

android – How to inflate a custom view in a linear layout in a recycling view?

I'm following this tutorial to create an expandable RecyclerView. Here is the complete code. My goal is to inflate this layout instead of a simple text view:




for (int indexView = 0; indexView < intMaxNoOfChild; indexView++) {
    TextView textView = new TextView(context);
    textView.setPadding(0, 20, 0, 20);
    textView.setBackground(ContextCompat.getDrawable(context, R.drawable.background_sub_module_text));
    LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
    linearLayout_childItems.addView(textView, layoutParams);

I need that for each layout created in the linear layout, I can add different text and a different image. Any idea how to do this?

Theme – Need to add a JS file to use a custom module with a custom twig template

I have created a custom module and created a configuration page which we need to enter the url on this page.

I have created a twig model in my custom module:

In my .module file


  $renderable = (
    '#theme' => 'my_template',
    '#test_var' => 'test variable',

$attachments('#attached')('html_head')() = (
      '#theme'  => 'my_template',
      '#js_file_url'   => $js_file_url,


function  custom_module_theme($existing, $type, $theme, $path) {
  return (
    'my_template' => (
      'variables' => ('js_file_url' => NULL),

My outing:


The expected output is

How to get rid of empty tags => <>,

By default $ attachments (& # 39; # attachment & # 39;) (& # 39; html_head & # 39;) () add the & # 39; # tag & # 39; even if I don't declare it.

Can someone help me, please.

php – write custom woocommerce templates and forms

I started customizing the default woocommerce templates using the square brackets as suggested in the documentation.

I have two questions on this aspect, I want to understand if I can write my own models using only conditional tags, or if I need to maintain the actual structure of the models which include a lot of do_action() and less markup, I didn't change them, just copied inside the mytheme/woocommerce/ folder of my theme for now.

Another question concerns the style of the forms in woocommerce, I need to implement bootstrap 4 with the associated classes for the ecc form tables, but I am not able to find a template or a hook for do it. Can anyone help me clarify my doubt?

The option "Manage custom sizes" in page sizes is not available on the printer

I would like to print documents on A6 papers (105mm * 148mm) using the RICOH sp 325sNw printer.

In the printer paper size configuration, the "Manage custom sizes" option is not available, as shown below.

enter description of image here

How can I make it available?

magento2 – Magneto 2 custom module – Load the subscriber's e-mail in the PHTML file after subscribing to the newsletter

I am working on a custom module where we need to load the email address of a newsletter subscriber into a phtml file after subscribing.

Our Observer file is triggered during a subscription event and collects the following data:

public service execute ( Magento Framework Event Observer $ observer) {
$ event = $ observe-> getEvent ();
$ subscriber = $ event-> getSubscriber ();
$ email = $ subscriber-> getEmail ();
$ promoCode = $ subscriber-> getNpDiscountCode ();
$ data = ();
$ inputEmail = $ email;

We now need to load $ inputEmail into a phtml file and we haven't posted a solution yet.

Any help would be greatly appreciated!

8 – Is there a way to generate dummy content for custom entities?

Since the Devel module allows you to generate content only for the main entities:

Accelerate the development of your site or module by quickly generating nodes, comments, terms, users, etc.

Is there an appropriate module or means to generate bogus content for custom entities?

I mention that I found the Devel contrib module which includes the Devel Contrib Generate module, which allows to generate dummy entities of any type of entity, but I was not able to understand how to use it with D8.

plugins – Create custom post types using ACF

So I am using Genesis Framework with a theme provided by them, and I have just implemented the Advanced Custom Fields plugin.

What is the best way to create custom post types? I want to have a "People" option which has the same user interface as "Posts" in the list below.

enter description of image here

Custom data capture with regular expression problem


I'm looking to use Scrapebox to scrape off all the domain names on a just shy list of 4000 web page URLs.

Domain names are formatted on the pages as follows:

Domain names are in plain text. These are not hyperlinks.

If that helps, they are also always in between



I already have my list of almost 4000 URLs that I want to scan.

I use 5 private proxies that have been tested and registered.
I think they are applied when using the custom Data Grabber, but honestly, I'm having trouble with Scrapebox.

I have created inbound and outbound rules for Scrapebox in Windows Firewall.
I can do other things using Scrapebox that work. Like entering internal links on the domain from which I receive the URLs.

I have created a custom data entry module and under it a module mask:

View post on

I have tried several examples of regular expressions and found this one:




I tested it using the tool on and 3 examples of URLs appear as matches (as far as I know?):

View post on

However, when I run my module, all I get is the following:

View post on

The module data folder contains a csv for each time I run the module, containing two odd characters in the first cell:

View post on

I have run many of the URLs via and the domain names on these URLs are readable according to this tool.

Does anyone know where i am going wrong here?
Or is there a better way to remove domain name MENTIONS from a list of URLs?

Thanks in advance!