Simple help
-
Guys,
I think my issue is too simple for many of you but I just started on wp and I have some programming experience (not much), anyway, I am too new and I need a little help from any of you.I create a very simple plugin for testing, in the page i just add the shorcode [aoq_action], and it is suppose to write just one time whatever is in the function HOWEVER the problem that I have is that the function is displayed in two parts, what appears to be on the top of the page (where the header banner is) and the other is showed properly on the page, down after the title. I tried and tried to see other scripts but even tutorials but nothing change. I was able to open a database and diplay whatever I want using the code but I am still have the same issue, the results is displayed on the top of the page (i think the header) and the other is displayed properly on the page.
I think this is too simple for many of you but I need help. Maybe if you can tell me how to place it in the spot. Below the simple plug in…
<?php
/*
Plugin Name: AO Product Query
Plugin URI: http://xxx
Description: This is simple query to bring my products
Author: ao
Version: 1.0
Author URI: http://xxx
*/function f_action()
{
echo “<h1>this is a test</h1>”;
}add_shortcode(‘aoq_action’, ‘f_action’);
The topic ‘Simple help’ is closed to new replies.