lazercaveman
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: How to display page contentHello,
Thank you for helping. I already solved the problem in a similar way.
<?php if ( have_posts() ) { wp_reset_query(); setup_postdata($post); echo esc_attr(htmlentities(the_content())); } else { echo "Es wurde noch kein Text definiert."; }; ?>
Thank you anyway, kind regards
- This reply was modified 6 years, 5 months ago by lazercaveman.
Forum: Fixing WordPress
In reply to: Stylesheet header alternative in WordPressSometimes the answer is so simple! ??
Ur right, that’s really an easy way to do it ??
Forum: Developing with WordPress
In reply to: Combining Plugin and ThemeHello, thanks for answers,
the client shouldnt have to do anything but to install the plugin, so the related (and inside of the plugin included theme) should get installed and activated by activating the plugin.
So it’s not about changing the theme.php, it’s about automization of processes out of the plugin. I want to realize a plugin and frontent-theme combination.
note: i did not found a solution out of the codex ??
- This reply was modified 7 years ago by lazercaveman.
Forum: Developing with WordPress
In reply to: Using JS in Plugin averts adding Images to articles???hey, i allready solved the problem, my script is runnig in the backend bcs im writing a plugin not a template ??
Forum: Hacks
In reply to: Problem with adding checkboxes to my metabx inside of my pluginThank you very much, ill have a look ??
Forum: Hacks
In reply to: Problem with ading customfields within functions.phpI allready found a solution… the permalink structure has to be setted to standard, than everything is working finally! ??
THanks to everybody! ??
Forum: Hacks
In reply to: Problem with ading customfields within functions.phpOkay Got it! ??
…now i changed the code and startet constructing a plugin.
Everything is working as it should. Posts are shown on search.php and so on… only when i klick on an article (wich is generated by my plugin) i get redirected to the startsite of my page :/
So i searched for a solution, i read about i have to add a new single.php to my cstum-template which has to be named single-myposttypenam.php.
So the posttype is registered as ements
register_post_type( 'ements',
also i added a data which is named single-ements.php and added the code of the single.php into ist.
But still, when i click on an article iIm getting redirected to my startpage :/
What am i doing wrong??? :S
thanks a lot for helping and Best regards ??