nolimit76
Forum Replies Created
-
Forum: Themes and Templates
In reply to: the images not showing on the posts and pagesIt was the lazy load right?
Forum: Themes and Templates
In reply to: the images not showing on the posts and pagesI am currently having the same problem.
I checked your link and it looks good.
What did you do to fix it?
Forum: Fixing WordPress
In reply to: Capability ID to choose media from media libraryStill been looking but no luck yet..
Forum: Fixing WordPress
In reply to: How to Add A New ProjectHardeep,
So sorry for the delay. I liked the idea of a WP plugin so I tried to go down that road as time permitted but having some issues… I was hoping you might see the flaw…
I had two variants of my calc. one was the html, css and js files. The other, which I tried to use has the following:
A main calculator.php file. In that same directory is a subfolder that has the main css and js files.
I created an includes folder and place the structure above in it. In the same level as the includes folder I made a Horse racing calculator.php file to act as the main file..
I tried this…
<?php
/*
Plugin Name: HorseRacingCalculator
Description: A horse wagering calculator to take all the guesswork out of making a bet-amount
Version: 1.0
Author: Adam Solowiei
*/define( ‘Horse_Calc_Files_Path’, plugin_dir_path( __FILE__ ) );
include( Horse_Calc_Files_Path . ‘Includes/calculator.php’ );
?>//My plugin shortcode
<?
function HorseCalculator(){
return ‘calculator.php’;}
add_shortcode(‘HorseCalc’, ‘HorseCalculator’);?>
But…no joy and the raw calc just takes over the dashboard page. I know I am doing something wrong but missing it. My calculator.pp file is the brain of the item so I want the shortcode to call it and have things run from there.. Is there something obvious I am missing???
Forum: Fixing WordPress
In reply to: How to Add A New ProjectI will give it a shot and report back. Thanks a lot.