Custom thesis- Help writing dissertation proposal, dissertation writing services
An order and custom thesis

Custom thesis

sample home loopNow, that may not be the prettiest thing you’ve ever seen, but the implications are huge. Let’s take a moment to dissect the code that created the output in Figure 1.

The keen among you will no doubt have noticed the absence of any hook or filter calls, which are typically necessary to “activate” custom code in the custom_functions.php file. Instead of a hook or filter, the Thesis Custom Loop API simply requires you to instantiate a PHP class extension, like so:

$loopty_loop = new my_loops;

In the above code, the variable $loopty_loop is being assigned a new instance of the my_loops class. In order to work with the Thesis Custom Loop API, my_loops must be a special kind of class—it must be an extension of the thesis_custom_loop class. This is accomplished through the use of the extends terminology, as seen in the my_loops class declaration:

Thesis category page with custom loop class my_loops extends thesis_custom_loop { function home { echo "Hi mom!"; } }

If this API is like a business, then thesis_custom_loop is the middleman. It knows which loop Thesis wants to run, and it knows which loops you’ve defined. When there is a match between the requested loop and one of your custom loops, thesis_custom_loop will run the appropriate custom loop.

In our example snippet above, the only defined loop is the home loop, so custom output will only display on the home page. All other types of pages will be unaffected.

Available Custom Loops

  • front — Front page of your site. Note: front page display must be set to a static page inside WordPress for this to have effect.
Source: diythemes.com
RELATED VIDEO
Create the Custom Thesis Templates
Create the Custom Thesis Templates
Seo Friendly Design with a Custom Thesis Theme
Seo Friendly Design with a Custom Thesis Theme
Troubleshooting Thesis Custom Templates - Part 4
Troubleshooting Thesis Custom Templates - Part 4
RELATED FACTS
Share this Post

Related posts

Dissertations and Theses

Dissertations and Theses

FEBRUARY 19, 2017

Dissertations (or theses outside the U.S.) complete your library collection by surfacing original research that can often…

Read More
Dissertation writing Grants

Dissertation writing Grants

FEBRUARY 19, 2017

Typically, dissertation funding may be divided into two separate phases: dissertation research and dissertation writing…

Read More