Lukket

WordPress Plugin Edit / Theme Edit

I have a plugin which currently rewrites a couple items such as post title, content, etc.. but I need it to modify a couple other items.

here is an example

add_filter('the_title_attribute', 'rewrite');

add_filter('the_title', 'rewrite');

add_filter('the_title_rss', 'rewrite');

add_filter('the_content', 'rewrite');

I need it to be able to edit h1 tags, h2 tag etc..

will give you admin access to make the needed changes.

The above information was not enough.
This should provide enough information to understand the scope of the project.

Template
template_005.php

plugin
plugin.php

How it works.

This is a rewrite plugin which pulls the information from the URL.
Here's how it works:

If you have (for example) three tags: "extradata1", "extradata2" and "extradata3" that you want to pass in. Ordinarily your posts look like this: http://www.domain.com/2009/03/03/post-title/

You can then add in those unique words into the body (and titles etc) of your post. Ensure that these are unique so that words that you don't want to replace are not modified.

If you add some forward slash delimited data as the end of your URL (three entries) like this:
http://www.domain.com/2009/03/03/post-title/something/somethingelse/somethingelsecompletely/

That extra forward slash delimited information in your URL will be used to replace your tags like "extradata1" "extradata2 and "extradata3" in the post body in the order you set below (so the first entry in the URL "something" will overwrite "extradata1" in your post body), etc.


Right now it seems to work with these items..
// init filter to to tag replacement inside post body and others
add_filter('the_title_attribute', 'sppc_rewrite');
add_filter('the_title', 'sppc_rewrite');
add_filter('the_title_rss', 'sppc_rewrite');
add_filter('the_content', 'sppc_rewrite');
add_filter('the_content_rss', 'sppc_rewrite');
add_filter('the_excerpt', 'sppc_rewrite');
add_filter('the_excerpt_rss', 'sppc_rewrite');
add_filter('the_meta', 'sppc_rewrite');
add_filter('single_post_title', 'sppc_rewrite');


But I need it to modify others..
This is what I tried but it did not work.
$postcustom = get_post_custom($post->ID);
add_filter($postcustom['_optthemes_subheadline'], 'sppc_rewrite');

Code below pulled from : template_005.php

<div id="main">
<div id="main-headlines">
<?php echo !empty($postcustom['_optthemes_preheadline']) ? '<h2 class="main-preheadline">'.stripcslashes($postcustom['_optthemes_preheadline'][0]).'</h2>' : ""; ?>

<?php echo !empty($postcustom['_optthemes_headline']) ? '<h1 class="main-headline">'. stripcslashes($postcustom['_optthemes_headline'][0]) .' </h1>' : ""; ?>

<?php echo !empty($postcustom['_optthemes_subheadline']) ? '<h2 class="main-postheadline">'. stripcslashes($postcustom['_optthemes_subheadline'][0]) .'</h2>' : ""; ?>


Im decent at coding but not great. This looks like a simple edit just cant understand every variable.

Færdigheder: WordPress

Se mere: modify wordpress plugin, modify theme, H2, edit wordpress plugin, edit rewrite, edit post, wordpress plugin edit, tag plugin, wordpress plugin modify post, items wordpress, theme admin, rewrite access, Edit plugin, edit content, post plugin, edit plugin wordpress, plugin edit wordpress, post title wordpress, plugin needed wordpress, wordpress modify plugin, wordpress edit plugin, need modify wordpress, plugin modify, admin theme, plugin post

Om arbejdsgiveren:
( 5 bedømmelser ) Concord, United States

Projekt-ID: #979213

3 freelancere byder i gennemsnit $173 for dette job

evgendob

Please, check PM

$100 USD in 2 dage
(254 bedømmelser)
7.3
Msolutions7

Hi 100% satisfaction and responsible for WordPress Plugin Editing with Theme [url removed, login to view]’s start urgently and agree on this suitable project [url removed, login to view] checkout before [url removed, login to view] to proceed the next step so we Mere

$250 USD in 7 dage
(25 bedømmelser)
5.4
radhe003

Check pm thanks radhe

$170 USD in 2 dage
(13 bedømmelser)
3.7