php – WordPress template page name displayed on screen

Hi there _ Must admit I’m scratching my head!

I’ve uploaded a demo site that uses a number of template pages.
Everything works as expected, but whenever there’s a page change the top 3 lines of the php template file are briefly displayed on the screen.
I mean these lines:

/* 
Template Name: name
*/

You can see the display yourself at this URL : Demo website

If you click on any of the bottom 5 sub-items under ‘PAINTINGS’, the momentary display of the template name will appear top right of the screen

This has never happened to me before and I’ve tried everything that I can think of:

I’m not sure this fault is directly connected to php code. I think it might be more related to the WordPress framework. But I will add one php template page, just in case! (The other templates are very much the same)

/* 
Template Name: Exhibition - Pilgrims 
*/
<?php get_header(); ?>
        
        <div class="container fadeIn perimeter">
            
            <section id="WhatWaterGaveMepage">

                <div class="row">
                    <div class="col-12">              
                        <div class="divPad">
                            <?php $featured_query = new WP_Query( array(
                                'category_name' => 'pilgrims-text'
                            )); ?>

                            <?php while($featured_query->have_posts()) : $featured_query->the_post(); ?>
                                <article class="fontBrand1 fontType1 pageText">
                                    <div class="horizBuffer2"></div>
                                    <p class="left"><?php the_content(); ?></p>
                                </article>
                            <?php endwhile; ?>
                       </div><!-- /.divPad -->
                    </div>
                </div><!-- /.row -->
             
            </section><!-- /#WhatWaterGaveMepage -->

            <section class="gallery" id="mainGallery">
                <div class="container">
                    
                    <div class="row">

                        <?php
                            global $query_string;
                            query_posts( $query_string . '&posts_per_page=-1' );
                        ?>
                        
                        <?php $featured_query = new WP_Query( array(
                            'category_name' => 'pilgrims'
                        )); ?>
                        
                        <?php while($featured_query->have_posts()) : 
                            $featured_query->the_post(); ?>
                                <div class="col-md-4">
                                    <div class="divPad">
                                        <a href="<?php echo the_permalink(); ?>">
                                            <?php $post_id = get_the_ID(); ?>
                                            <?php the_post_thumbnail(); ?>
                                        </a>
                                        <br />
                                        <span class="fontBrand1 fontType1 text"><?php echo the_title(); ?></span>
                                    </div><!-- /.divPad -->
                                </div>
                                
                                
                        <?php endwhile; ?>
                        <?php wp_reset_postdata(); ?>
                   
                    </div><!-- /.row -->
                </div><!-- /.container -->
            </section><!-- /#mainGallery -->
            
            <div class="horizBuffer2"></div>
        </div><!-- /.perimeter -->
        
<?php get_footer(); ?>

If anyone can help me get rid of this ‘template name displayed’ glitch I’ll be very grateful _ Thanks

After Effects Template Modification from Envato

Hello, I need someone who can assist me modify some After Effects files that i will be getting from Envato.

Please reply here if you provide such service and an estimate rate.

Work Example :

I will get After Effect Templates like these

https://videohive.net/item/evolve-p…7.1567049463.1620645535-2129854122.1615376236

and want to customize it to my fittings.

Thanks you

magento2 – How to create a template for page content in custom module?

I’ve created a module that includes a custom page. I can set a template block for the page title as follows:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="page.main.title" template="JR2_MonthlySubscription::monthly_subscription.phtml" />
        <!--
        <referenceBlock name="page.main.title">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">MYA_Subscribe::title.phtml</argument>
            </action>
        </referenceBlock>
        !-->
    </body>
</page>

This works fine, but how do I set a template for the actual page content? I’ve tried adding a reference block for page.wrapper to no avail. The documentation doesn’t seem to mention the available page options for name.

I will do ebay seo listing with ebay html template design for $2

I will do ebay seo listing with ebay html template design

>>>>>>Welcome to my eBay products listing Gig<<<<<<

Do you need an eBay product listing in your eBay store with SEO? I am here to list your all products to your eBay. I am well experienced in eBay listing.

I will provide the following services:

  • Professional and Attractive listing.
  • SEO optimization title.
  • Optimize product descriptions.
  • Product Variation (Need to buy extra $ Gig)
  • eBay HTML template design ( Need to buy extra $ gig ).
  • Meta tags, meta description, setup template.
  • Product Image Editing and Resizing.
  • More than 2 years of Experience in eBay Management.
  • Optimize product information to get rank in search on eBay.
  • Mobile Responsive, active content-free Listing Template.

Why choose me?

❒ Timely Order Delivery

❒ Long time working relationship with a client

❒ 100% Client Satisfaction Guarantee

❒ Details Reporting

❒ Helpful

>>Kindly inbox before order placing to avoid cancellation!<<

This is Shahin Akter. I am a specialist in SEO Service, Digital Marketing, and Description Writing. I come here to solve your projects properly. I can provide you my services to the SEO-related zone like keywords research, Social bookmarking, Dropshipping, Shopify SEO, eBay SEO, Amazon SEO, Etsy SEO, On-page SEO, etc.

I can promote any business or product to millions of people worldwide. Able to work self-direction and motivation. You will get the best experience 100% sure. I have enough time to live chat with you. So feel free to contact me for the best services.

.(tagsToTranslate)Ebay(t)Ebaylisting(t)ebayseo(t)ebay(t)template(t)design

8 – Get current url along with query string in content type node template file

I want to get complete url including query string in content type node template file

Suppose this the url example.com/abc?name=anc&contact=123456

Same I want to print in content type node twig file

I tried url and path but not print complete url inclucing query string

{{ url("<current>") }}   // example.com/abc
{{ path('<current>') }}  // example.com/

I print complete url example.com/abc?name=anc&contact=123456

Is there any theme hook that i can print the complete url

Create page template via functions.php?

I want to create a new selectable page template for users that will allow them to identify which pages on the site are “Service” pages (eg plumbing, gas fitting, etc). The template is an exact copy of page.php but includes some JSON LD (schema.org code) for “Service” pages on their website.

I really don’t want a whole new servicepage.php file for this, that is just a carbon copy of page.php.

(How) Could I do this using only functions.php? Adding a new plugin is not currently an option.

8 – Get query string value in content type node twig template file

I am trying to retrieve query string value in content type node twig template file but its not working.
Tried to get the query string value in hook_preprocess_page(&$variables)

url : example.com?a=1&b=2

$variables('a') = $_GET('a');
$variables('b') = $_GET('b');

Call the variable in content type node: node–eaxaple.html.twig

{{ a}} {{ b}}

a and b print nothing

php – Calling a plugin function in a template

I’m using the WP-property plugin with the import addon. It imports properties from a local MLS. In the property edit screen, it displays the last import time and date in the meta box. I need to display this on the font end. (The plugin docs don’t provide a way to do this).

I found the function that displays this time and date (it is edited to suit my needs for a font-end display)

  static public function wpp_publish_box_options( $id ) {
global $post, $wp_properties;

if( !$wpp_import_schedule_id = get_post_meta( $post->ID, 'wpp_import_schedule_id', true ) ) {
  return;
}

//** Get time stamp from new format ( Version 2.6.0+ ) */
$import_time = get_post_meta( $post->ID, 'wpp_import_time', true );

//** Get time stamp from old meta_key ( pre-version 2.6.0 ) if new meta_key does not exist */
if( empty( $import_time ) ) {
  $import_time = get_post_meta( $post->ID, 'wpp_xml_import', true );
}

if( !empty( $import_time ) ) {
  $import_time = date_i18n( __( 'M j, Y @ G:i', ud_get_wpp_importer()->domain ), strtotime( $import_time ) );
  ?>

  <div class="misc-pub-section xml_import_time misc-pub-section-last">
    <span class="wpp_i_time_stamp"><?php printf( __( 'Imported on: <b>%1$s</b>', ud_get_wpp_importer()->domain ), $import_time, $import_url, $import_name ); ?>
      <b></b></span>
  </div>
<?php
}

}

But when I add this (as a shortcode) I get a critical error. I’m using another plugin to create the shortcode easily.

I’ve also tried just using the HTML within the divs (also via shortcode) hoping that the function is firing anyhow, but no go. I’m wondering if it only fires on the backend.

Any help on this? I’ve been at it for a while and I think my brain is fried.

theming – how to programmatically display a view embedded in code with a template

I have a page I’m generating in a module. I’m using this code to get a block from a view:

$block = views_embed_view('testimonials', 'block_1');
$view = Drupal::service('renderer')->render($block);
$my_block = $view->__toString();

and display it in the generated HTML:

<div class='testimonials'>$my_block</div>

When I view the page in a browser and inspect it (with twig.debug=true), I don’t see the output rendered by a block template. If I display the block in a region by using the block layout page, I do see there is twig involved.

What do I have to do to make it use a template when I create the block in code? I think the correct answer would be to create a twig template for the entire page, and pull the block into the page template. But I’m curious if it could also be done this way.

Tracking Tool, Template or Processes: Technical Hosting Data, websites/clients/projects

Hi all,

I am using excel to keep track of website details. What do others use to keep track of this data?

I have different silos of i… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1845029&goto=newpost